From 66830855846db5c211c2da6c055ca9b4167e8974 Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Thu, 5 Jun 2014 14:44:03 -0700 Subject: [PATCH] do not drop TS packet on discontinuity at payload start Bug: 15470543 Change-Id: Ia96a295fbc7e9f1b1d5c0d9091ac62184d44dcfa --- media/libstagefright/mpeg2ts/ATSParser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.11.0