lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.

pull/28/head
Nicolas George 13 years ago
parent c9fe864472
commit c28d80f4c9
  1. 2
      libavcodec/utils.c

@ -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;

Loading…
Cancel
Save