Module: libav
Branch: master
Commit: 521dc78366c6ea54b7b69426dab302a57231f81e

Author:    Anton Khirnov <[email protected]>
Committer: Anton Khirnov <[email protected]>
Date:      Thu Jan  7 08:24:54 2016 +0100

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.

---

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

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to