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

Clemens Ladisch cladisch
Wed Feb 28 09:22:16 CET 2007


Michael Niedermayer wrote:
> On Tue, Feb 27, 2007 at 06:13:40PM +0100, Clemens Ladisch wrote:
> > 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.
> 
> or starting from the last startcode, which may loose less before the 
> next syncpoint starcode

This wouldn't make any difference; there must be a syncpoint after other
headers.


Regards,
Clemens




More information about the ffmpeg-devel mailing list