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

Reimar Döffinger Reimar.Doeffinger
Tue Jul 27 22:49:40 CEST 2010


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;
 }




More information about the ffmpeg-devel mailing list