Signed-off-by: Michael Niedermayer <[email protected]>
---
libavformat/icoenc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/icoenc.c b/libavformat/icoenc.c
index dcf9065..53d4420 100644
--- a/libavformat/icoenc.c
+++ b/libavformat/icoenc.c
@@ -61,7 +61,8 @@ static int ico_check_attributes(AVFormatContext *s, const
AVCodecContext *c)
return AVERROR(EINVAL);
}
} else {
- av_log(s, AV_LOG_ERROR, "Unsupported codec %s\n", c->codec_name);
+ const AVCodecDescriptor *codesc = avcodec_descriptor_get(c->codec_id);
+ av_log(s, AV_LOG_ERROR, "Unsupported codec %s\n", codesc ?
codesc->name : "");
return AVERROR(EINVAL);
}
--
1.7.9.5
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel