flvenc: use avcodec_get_name to report unsupported codecs.

This commit is contained in:
Nicolas George 2011-08-17 16:17:30 +02:00
parent 83ff2a1153
commit 1c58264e62
1 changed files with 1 additions and 1 deletions

View 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;
}