OSDN Git Service

mux: drop the warning about global headers
authorAnton Khirnov <anton@khirnov.net>
Thu, 7 Jan 2016 07:24:54 +0000 (08:24 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 12 Jan 2016 08:12:24 +0000 (09:12 +0100)
The AVStream codec context is often not (and should not be) the actual
encoding context, so this warning will be spurious in many cases.

libavformat/mux.c

index 7a51578..ddc69f9 100644 (file)
@@ -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++;
     }