summaryrefslogtreecommitdiffstats
path: root/libavutil/buffer.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2015-05-20 00:06:05 +0200
committerMichael Niedermayer <[email protected]>2015-07-20 04:43:39 +0200
commitd4d8c3553d086fd8755d7535367b2e6a8dbb41af (patch)
tree2366b3c897f66f0342de14e5272c0f01b0cd5a5d /libavutil/buffer.c
parentbd9313d9f840ea4d96b36547e42014f0fba6cfa8 (diff)
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 <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]> (cherry picked from commit 37e679881d364b6da817d829d35869d657218ab3) Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavutil/buffer.c')
0 files changed, 0 insertions, 0 deletions