[FFmpeg-devel] [PATCH] fix ffplay eof memleak (issue806)

Michael Niedermayer michaelni
Sun Apr 19 22:24:25 CEST 2009


On Thu, Feb 19, 2009 at 11:13:55PM +0100, Michael Niedermayer wrote:
> On Sat, Feb 14, 2009 at 05:54:46PM +1100, Peter Ross wrote:
> [...]
> > Index: ffplay.c
> > ===================================================================
> > --- ffplay.c	(revision 17219)
> > +++ ffplay.c	(working copy)
> > @@ -2090,7 +2090,7 @@
> >          }
> >          ret = av_read_frame(ic, pkt);
> >          if (ret < 0) {
> > -            if (url_ferror(ic->pb) == 0) {
> > +            if (ret != AVERROR_EOF && url_ferror(ic->pb) == 0) {
> >                  SDL_Delay(100); /* wait for user event */
> >                  continue;
> >              } else
> 
> ive approved this, but this change is incorrect
> the EOF case must not leave the loop but rather cause "url_feof(ic->pb) if"
> above to trigger so that null packets are injected to force remaining video
> frames out of the decoder

should be fixed

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

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090419/8806e793/attachment.pgp>



More information about the ffmpeg-devel mailing list