[Ffmpeg-devel] [PATCH] nutdec: fix infinite loop when resyncing

Clemens Ladisch cladisch
Tue Feb 27 18:13:40 CET 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut-resync.patch
Type: application/octet-stream
Size: 671 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070227/596f2717/attachment.obj>



More information about the ffmpeg-devel mailing list