[FFmpeg-devel] [PATCH]lavf/apng: Do not print a warning when writing pngs

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Apr 7 12:19:03 CEST 2015


Hi!

Attached patch stops FFmpeg from printing a warning in 
the normal use case.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/apngenc.c b/libavformat/apngenc.c
index 8dbe9e4..4b31309 100644
--- a/libavformat/apngenc.c
+++ b/libavformat/apngenc.c
@@ -114,7 +114,7 @@ static void flush_packet(AVFormatContext *format_context, AVPacket *packet)
         uint8_t *existing_acTL_chunk;
         uint8_t *existing_fcTL_chunk;
 
-        av_log(format_context, AV_LOG_WARNING, "Only a single frame so saving as a normal PNG.\n");
+        av_log(format_context, AV_LOG_INFO, "Only a single frame so saving as a normal PNG.\n");
 
         // Write normal PNG headers without acTL chunk
         existing_acTL_chunk = apng_find_chunk(MKBETAG('a', 'c', 'T', 'L'), codec_context->extradata, codec_context->extradata_size);


More information about the ffmpeg-devel mailing list