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

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

Revert "Fix end-of-stream handling in OggExtractor"

This reverts commit db978bbb.

Reason for revert: Broke some ringtones. See bug 122805825

Change-Id: Idcbc2f6ec320cce17502192977677741bbc1ddc1
parent db978bbb
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 == ERROR_END_OF_STREAM ? AMEDIA_ERROR_END_OF_STREAM : AMEDIA_ERROR_UNKNOWN;
            return n < 0 ? (media_status_t) n : AMEDIA_ERROR_END_OF_STREAM;
        }

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