1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-12 04:15:06 +02:00

rtpenc: use avcodec_get_name to report unsupported codecs.

This commit is contained in:
Nicolas George 2011-08-17 16:17:47 +02:00
parent 1c58264e62
commit 355ac7ff6c

View File

@ -87,7 +87,7 @@ static int rtp_write_header(AVFormatContext *s1)
return -1;
st = s1->streams[0];
if (!is_supported(st->codec->codec_id)) {
av_log(s1, AV_LOG_ERROR, "Unsupported codec %x\n", st->codec->codec_id);
av_log(s1, AV_LOG_ERROR, "Unsupported codec %s\n", avcodec_get_name(st->codec->codec_id));
return -1;
}