tsdemux: fix M2TS stream resync
authorArnaud Vrac <avrac@freebox.fr>
Mon, 27 May 2013 20:22:32 +0000 (22:22 +0200)
committerEdward Hervey <edward@collabora.com>
Wed, 12 Jun 2013 06:01:24 +0000 (08:01 +0200)
commita5402d6eeb42e1b3f7ae986340ff6f3753dd69b4
tree57bb2da588efec391f76b118b55d17a7f44ea939
parent065d421d34908eedabfe0690d77436e1dd9aa046
tsdemux: fix M2TS stream resync

Sync byte scan is incorrect for M2TS streams because the timestamp 4
bytes were not included in the flush size. This can result in an
infinite loop.

Rework the scan code to be clearer and work in all cases.
gst/mpegtsdemux/mpegtspacketizer.c