mpegtspacketizer: Look harder for next sync position
authorEdward Hervey <edward@collabora.com>
Thu, 1 Aug 2013 09:01:03 +0000 (11:01 +0200)
committerEdward Hervey <edward@collabora.com>
Fri, 2 Aug 2013 08:41:25 +0000 (10:41 +0200)
commit3b60f8843793b27a8045a345866676eb42af6e75
treec1a80aab1c326a093aadb1c659812dc561650642
parentc28acaa3c570fed5e2cd8bc140494ee311578518
mpegtspacketizer: Look harder for next sync position

If ever we lose sync, we were just checking for the next 0x47 marker ...
which might actually happen within a mpeg-ts packet.

Instead check for 3 repeating 0x47 at the expected packet size interval,
which the same logic we use when we initially look for the packet size.
gst/mpegtsdemux/mpegtspacketizer.c