mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/137/head
parent
b6ca7bfc7c
commit
37e679881d
2 changed files with 5 additions and 1 deletions
Loading…
Reference in new issue