[FFmpeg-cvslog] mux: drop the warning about global headers

Anton Khirnov git at videolan.org
Wed Jan 27 17:57:58 CET 2016


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Jan  7 08:24:54 2016 +0100| [521dc78366c6ea54b7b69426dab302a57231f81e] | committer: Anton Khirnov

mux: drop the warning about global headers

The AVStream codec context is often not (and should not be) the actual
encoding context, so this warning will be spurious in many cases.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=521dc78366c6ea54b7b69426dab302a57231f81e
---

 libavformat/mux.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 7a51578..ddc69f9 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -199,12 +199,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
                 codec->codec_tag = av_codec_get_tag(of->codec_tag, codec->codec_id);
         }
 
-        if (of->flags & AVFMT_GLOBALHEADER &&
-            !(codec->flags & AV_CODEC_FLAG_GLOBAL_HEADER))
-            av_log(s, AV_LOG_WARNING,
-                   "Codec for stream %d does not use global headers "
-                   "but container format requires global headers\n", i);
-
         if (codec->codec_type != AVMEDIA_TYPE_ATTACHMENT)
             s->internal->nb_interleaved_streams++;
     }



More information about the ffmpeg-cvslog mailing list