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

Commit db978bbb authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix end-of-stream handling in OggExtractor

Bug: 122496376
Test: CTS
Change-Id: Ied78ce1fbd26e8303cc1772858d31e04765904df
parent 35288162
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -872,7 +872,7 @@ media_status_t MyOggExtractor::_readNextPacket(MediaBufferHelper **out, bool cal

            ALOGV("readPage returned %zd", n);

            return n < 0 ? (media_status_t) n : AMEDIA_ERROR_END_OF_STREAM;
            return n == ERROR_END_OF_STREAM ? AMEDIA_ERROR_END_OF_STREAM : AMEDIA_ERROR_UNKNOWN;
        }

        // Prevent a harmless unsigned integer overflow by clamping to 0