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

index 8664f46..a99fca0 100644 (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)) {
         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;
     }
 
         return -1;
     }