[FFmpeg-cvslog] rmdec: Improve message for demux error

Carl Eugen Hoyos git at videolan.org
Sun Mar 8 11:51:18 CET 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Mar  5 16:42:45 2015 +0000| [0f9f7969ef4df3661131cede3e8cc770e1ea3db8] | committer: Vittorio Giovara

rmdec: Improve message for demux error

Use correct context, reduce log level, don't assume it is a video stream,
and print the tag of the unknown stream.

Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>

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

 libavformat/rmdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 1507764..e2cf61f 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -313,7 +313,7 @@ int ff_rm_read_mdpr_codecdata(AVFormatContext *s, AVIOContext *pb,
         int fps;
         if (avio_rl32(pb) != MKTAG('V', 'I', 'D', 'O')) {
         fail1:
-            av_log(st->codec, AV_LOG_ERROR, "Unsupported video codec\n");
+            av_log(s, AV_LOG_WARNING, "Unsupported stream type %08x\n", v);
             goto skip;
         }
         st->codec->codec_tag = avio_rl32(pb);



More information about the ffmpeg-cvslog mailing list