Commit d6bd2949 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/icoenc: Remove deprecated use of codec_name

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fa39f8c0
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment