[FFmpeg-devel] [PATCH] nutdec: fix possible infinite loop when resyncing (repost)

Clemens Ladisch cladisch
Mon May 21 08:59:04 CEST 2007

When nut_read_packet() tries to resync after an error, it restarts
decoding at the next startcode after the last syncpoint.  When there was
another packet between that syncpoint and the error position, the error
position will eventually be reached again and nut_read_packet() will
loop forever.

This can be fixed by syncing only to syncpoints.  (This is always
correct because a syncpoint must occur before any sequence of frames.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nutdemux-resync.diff
Type: application/octet-stream
Size: 671 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070521/f1af43cb/attachment.obj>

More information about the ffmpeg-devel mailing list