[FFmpeg-cvslog] lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.
Nicolas George
git at videolan.org
Sun Aug 19 15:31:53 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Aug 19 15:26:05 2012 +0200| [c28d80f4c9360052943d2fdf708dd815cb1889d9] | committer: Nicolas George
lavc: avcodec_get_name: return "none" for AV_CODEC_ID_NONE.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c28d80f4c9360052943d2fdf708dd815cb1889d9
---
libavcodec/utils.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index a96b52d..150d907 100644
--- a/libavcodec/utils.c
+++ b/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;
More information about the ffmpeg-cvslog
mailing list