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

Commit aa8b91a4 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] stagefright: send EOS to encoder for thumbnail extraction am:...

[automerger] stagefright: send EOS to encoder for thumbnail extraction am: d62d3077 am: 5067a020

Change-Id: Ie56499cf819320a5968a57b8e39bde050b2c0ce5
parents ecc422b3 5067a020
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -301,10 +301,13 @@ status_t FrameDecoder::extractInternal() {
            err = mSource->read(&mediaBuffer, &mReadOptions);
            mReadOptions.clearSeekTo();
            if (err != OK) {
                ALOGW("Input Error or EOS");
                mHaveMoreInputs = false;
                if (!mFirstSample && err == ERROR_END_OF_STREAM) {
                    (void)mDecoder->queueInputBuffer(
                            index, 0, 0, 0, MediaCodec::BUFFER_FLAG_EOS);
                    err = OK;
                } else {
                    ALOGW("Input Error: err=%d", err);
                }
                break;
            }