OSDN Git Service

do not drop TS packet on discontinuity at payload start
authorChong Zhang <chz@google.com>
Thu, 5 Jun 2014 21:44:03 +0000 (14:44 -0700)
committerChong Zhang <chz@google.com>
Fri, 6 Jun 2014 20:26:50 +0000 (13:26 -0700)
Bug: 15470543

Change-Id: Ia96a295fbc7e9f1b1d5c0d9091ac62184d44dcfa

media/libstagefright/mpeg2ts/ATSParser.cpp

index d1afd8b..338e899 100644 (file)
@@ -555,7 +555,9 @@ status_t ATSParser::Stream::parse(
         }
 #endif
 
-        return OK;
+        if (!payload_unit_start_indicator) {
+            return OK;
+        }
     }
 
     mExpectedContinuityCounter = (continuity_counter + 1) & 0x0f;