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

Michael Niedermayer michaelni
Wed Jul 28 01:41:43 CEST 2010


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

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I wish the Xiph folks would stop pretending they've got something they
do not.  Somehow I fear this will remain a wish. -- M?ns Rullg?rd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100728/adca1dc6/attachment.pgp>



More information about the ffmpeg-devel mailing list