[FFmpeg-devel] [PATCH] mpc demuxer: return -1 on negative tag size instead of an endless loop

Reimar Döffinger Reimar.Doeffinger
Wed Sep 30 15:39:15 CEST 2009


On Wed, Sep 30, 2009 at 04:29:08PM +0300, Kostya wrote:
> On Wed, Sep 30, 2009 at 03:22:38PM +0200, Reimar D?ffinger wrote:
> > playing http://samples.mplayerhq.hu/A-codecs/musepack/sv8/sv8-tags.mpc
> > hangs near the end forever.
> > This is because size is negative at the end, causing the loop to parse
> > the same tag over and over forever.
> > Probably the code should also be extended to handle the file properly,
> > but either way an endless loop should be made impossible, e.g. like
> > this:
> 
> looks ok

Applied then.



More information about the ffmpeg-devel mailing list