mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-08 02:06:02 +08:00
lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.
This commit is contained in:
@@ -1851,6 +1851,8 @@ const char *avcodec_get_name(enum AVCodecID id)
|
|||||||
const AVCodecDescriptor *cd;
|
const AVCodecDescriptor *cd;
|
||||||
AVCodec *codec;
|
AVCodec *codec;
|
||||||
|
|
||||||
|
if (id == AV_CODEC_ID_NONE)
|
||||||
|
return "none";
|
||||||
cd = avcodec_descriptor_get(id);
|
cd = avcodec_descriptor_get(id);
|
||||||
if (cd)
|
if (cd)
|
||||||
return cd->name;
|
return cd->name;
|
||||||
|
Reference in New Issue
Block a user