[FFmpeg-cvslog] rtpenc: use avcodec_get_name to report unsupported codecs.

Nicolas George git at videolan.org
Mon Aug 22 12:21:02 CEST 2011


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Wed Aug 17 16:17:47 2011 +0200| [355ac7ff6cba314390f5fb2bf4680b29cd02a9a8] | committer: Nicolas George

rtpenc: use avcodec_get_name to report unsupported codecs.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=355ac7ff6cba314390f5fb2bf4680b29cd02a9a8
---

 libavformat/rtpenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 8664f46..a99fca0 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -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;
     }



More information about the ffmpeg-cvslog mailing list