Commit c28d80f4 authored by Nicolas George's avatar Nicolas George

lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.

parent c9fe8644
......@@ -1851,6 +1851,8 @@ const char *avcodec_get_name(enum AVCodecID id)
const AVCodecDescriptor *cd;
AVCodec *codec;
if (id == AV_CODEC_ID_NONE)
return "none";
cd = avcodec_descriptor_get(id);
if (cd)
return cd->name;
......
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