OSDN Git Service

better mpeg2 TS elementary stream Access Unit parsing
authorRay Essick <essick@google.com>
Tue, 6 Mar 2018 23:55:29 +0000 (15:55 -0800)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 13 Apr 2018 22:46:06 +0000 (22:46 +0000)
commitcc33413ec73c8e23b4dd2207415e2c4fe562d3b4
tree759455339622f052c08dec252577cd7de32c9065
parent751895db1b84dd8434fc2aa822798b4e65caf750
better mpeg2 TS elementary stream Access Unit parsing

mpeg2 es stream access units have a 3 byte prefix and a 1 byte start
code. Searching for the next access unit started after the prefix
instead of after the start byte.

Bug: 74114680
Test: ran POC before/after
(cherry picked from commit 371066d073c5db289b0f38b9d2bfd3e326c78c66)

Change-Id: I813d2ecd3bc972fb92809f1068f596970591cf3c
media/libstagefright/mpeg2ts/ESQueue.cpp