From: Chong Zhang Date: Thu, 5 Jun 2014 21:44:03 +0000 (-0700) Subject: do not drop TS packet on discontinuity at payload start X-Git-Tag: android-x86-6.0-r1~2038^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=66830855846db5c211c2da6c055ca9b4167e8974;p=android-x86%2Fframeworks-av.git do not drop TS packet on discontinuity at payload start Bug: 15470543 Change-Id: Ia96a295fbc7e9f1b1d5c0d9091ac62184d44dcfa --- diff --git a/media/libstagefright/mpeg2ts/ATSParser.cpp b/media/libstagefright/mpeg2ts/ATSParser.cpp index d1afd8be9f..338e899936 100644 --- a/media/libstagefright/mpeg2ts/ATSParser.cpp +++ b/media/libstagefright/mpeg2ts/ATSParser.cpp @@ -555,7 +555,9 @@ status_t ATSParser::Stream::parse( } #endif - return OK; + if (!payload_unit_start_indicator) { + return OK; + } } mExpectedContinuityCounter = (continuity_counter + 1) & 0x0f;