[FFmpeg-devel] [PATCH]Only show "Codec is not in the full list" warning for id != 0
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Aug 19 12:26:22 CEST 2012
Hi!
Attached patch silences one FFmpeg warning when reading unknown codecs.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index a96b52d..719a00b 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1854,6 +1854,7 @@ const char *avcodec_get_name(enum AVCodecID id)
cd = avcodec_descriptor_get(id);
if (cd)
return cd->name;
+ if (id)
av_log(NULL, AV_LOG_WARNING, "Codec 0x%x is not in the full list.\n", id);
codec = avcodec_find_decoder(id);
if (codec)
More information about the ffmpeg-devel
mailing list