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

Commit becde2da authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "libstagefright: Reset the decoder while performing seek." into gingerbread

parents e94b29f5 5eede5f9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -122,7 +122,8 @@ status_t AMRNBDecoder::read(
        CHECK(seekTimeUs >= 0);

        mNumSamplesOutput = 0;

        //Reset decoder in case of seek to 0
        Speech_Decode_Frame_reset(mState);
        if (mInputBuffer) {
            mInputBuffer->release();
            mInputBuffer = NULL;