[FFmpeg-devel] [HACK] force "last message repeated" output

Reimar Döffinger Reimar.Doeffinger
Wed Jul 28 07:46:58 CEST 2010


On Wed, Jul 28, 2010 at 01:41:43AM +0200, Michael Niedermayer wrote:
> On Tue, Jul 27, 2010 at 10:49:40PM +0200, Reimar D?ffinger wrote:
> > Hello,
> > If there's a single message repeate over and over, libavutil will not
> > print it each time, which is nice.
> > However, it will also not print the message indicating it was repeated
> > if there's no other message following.
> > Below is a hack that avoids this for ffmpeg, however better ideas are welcome.
> > Index: ffmpeg.c
> > ===================================================================
> > --- ffmpeg.c    (revision 24552)
> > +++ ffmpeg.c    (working copy)
> > @@ -642,6 +642,8 @@
> >          exit (255);
> >      }
> >  
> > +    // force out any "Last message repeated" messages
> > +    av_log(NULL, AV_LOG_QUIET, "");
> >      exit(ret); /* not all OS-es handle main() return value */
> >      return ret;
> >  }
> 
> iam ok with your hack if it works for ffplay & ffserver & all other
> tools too

It only works if I add the same hack to each tool, that's one
of the things that makes it a hack...



More information about the ffmpeg-devel mailing list