[FFmpeg-cvslog] flvenc: use avcodec_get_name to report unsupported codecs.

Nicolas George git at videolan.org
Mon Aug 22 12:21:02 CEST 2011


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Wed Aug 17 16:17:30 2011 +0200| [1c58264e62601c0c8945b4e19eef04512f70425f] | committer: Nicolas George

flvenc: use avcodec_get_name to report unsupported codecs.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1c58264e62601c0c8945b4e19eef04512f70425f
---

 libavformat/flvenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 363309c..5bf9809 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -384,7 +384,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
 
         flags = enc->codec_tag;
         if(flags == 0) {
-            av_log(enc, AV_LOG_ERROR, "video codec %X not compatible with flv\n",enc->codec_id);
+            av_log(enc, AV_LOG_ERROR, "video codec %s not compatible with flv\n", avcodec_get_name(enc->codec_id));
             return -1;
         }
 



More information about the ffmpeg-cvslog mailing list