avformat/mpegts: resync from the smallest packet size on
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 18 Aug 2013 20:59:04 +0000 (22:59 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 18 Aug 2013 20:59:04 +0000 (22:59 +0200)
commitd73cbc22c5f2c305838d9867538cf4ad59c4035f
tree391a1d547611852ebd21846d993c31b2dbdbfc46
parentb4429c259a64b46357165e4eafaead175be44760
avformat/mpegts: resync from the smallest packet size on

This avoids the loss of a packet in many cases if the packet size was wrong.
It also improves detection of packet size changes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c