mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/icoenc: Remove deprecated use of codec_name
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fa39f8c0e2
commit
d6bd29492c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user