aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-27 22:37:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-28 14:34:55 +0200
commitd6bd29492ca2f0571580d2601386cc2e1dd37250 (patch)
treed44fffb8c8db57fd43488c58b6465538edc8ca1a /libavformat
parentfa39f8c0e2c95cc5cad17c66d186832ce4bfee5f (diff)
downloadffmpeg-d6bd29492ca2f0571580d2601386cc2e1dd37250.tar.gz
avformat/icoenc: Remove deprecated use of codec_name
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/icoenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/icoenc.c b/libavformat/icoenc.c
index dcf906513a..53d4420f37 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);
}