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

Michael Niedermayer michaelni
Wed Feb 28 10:06:12 CET 2007


Hi

On Wed, Feb 28, 2007 at 09:22:16AM +0100, Clemens Ladisch wrote:
> 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.

unless its damaged though i guess this is a little unlikely, so well
i am ok with the patch

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070228/d1fd1395/attachment.pgp>



More information about the ffmpeg-devel mailing list