Skip to content
Snippets Groups Projects
Commit c28d80f4 authored by Nicolas George's avatar Nicolas George
Browse files

lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.

parent c9fe8644
No related branches found
No related tags found
No related merge requests found
...@@ -1851,6 +1851,8 @@ const char *avcodec_get_name(enum AVCodecID id) ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment