Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78c12ed0 authored by Wonsik Kim's avatar Wonsik Kim Committed by Android (Google) Code Review
Browse files

Merge "stagefright: set OMX.google.raw.decoder output buffer size"

parents 64cb1ba9 c6c6d6ba
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -159,7 +159,16 @@ OMX_ERRORTYPE SoftRaw::internalSetParameter(
        }
        }


        default:
        default:
            return SimpleSoftOMXComponent::internalSetParameter(index, params);
        {
            OMX_ERRORTYPE err = SimpleSoftOMXComponent::internalSetParameter(
                    index, params);
            // In case inPort->mDef.nBufferSize changed, the output buffer size
            // should match the input buffer size.
            PortInfo *inPort = editPortInfo(0);
            PortInfo *outPort = editPortInfo(1);
            outPort->mDef.nBufferSize = inPort->mDef.nBufferSize;
            return err;
        }
    }
    }
}
}