From 1c58264e62601c0c8945b4e19eef04512f70425f Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Wed, 17 Aug 2011 16:17:30 +0200 Subject: [PATCH] flvenc: use avcodec_get_name to report unsupported codecs. --- libavformat/flvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 363309c75a..5bf9809358 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; }