OSDN Git Service

flvenc: use avcodec_get_name to report unsupported codecs.
authorNicolas George <nicolas.george@normalesup.org>
Wed, 17 Aug 2011 14:17:30 +0000 (16:17 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Mon, 22 Aug 2011 10:13:27 +0000 (12:13 +0200)
libavformat/flvenc.c

index 363309c..5bf9809 100644 (file)
@@ -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;
         }