Browse Source

lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.

tags/n1.0
Nicolas George 13 years ago
parent
commit
c28d80f4c9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/utils.c

+ 2
- 0
libavcodec/utils.c View File

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