aboutsummaryrefslogtreecommitdiffstats
path: root/tools/yuvcmp.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-05-20 00:06:05 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-20 04:43:39 +0200
commitd4d8c3553d086fd8755d7535367b2e6a8dbb41af (patch)
tree2366b3c897f66f0342de14e5272c0f01b0cd5a5d /tools/yuvcmp.c
parentbd9313d9f840ea4d96b36547e42014f0fba6cfa8 (diff)
downloadffmpeg-d4d8c3553d086fd8755d7535367b2e6a8dbb41af.tar.gz
nutdec: fix infinite resync loops
nut->last_syncpoint_pos doesn't necessarily change between resync attempts, so find_any_startcode can return the same startcode again. Thus remember where the last resync happened and don't try to resync before that. This can't be done locally in nut_read_packet, because this wouldn't prevent infinite resync loops, where after the resync a packet is returned and while reading a following packet the resync happens again. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 37e679881d364b6da817d829d35869d657218ab3) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/yuvcmp.c')
0 files changed, 0 insertions, 0 deletions