[FFmpeg-devel] [PATCH]Do not claim that every unknown rm stream is a video codec

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Nov 24 22:36:21 CET 2011


I believe attached patch improves ticket #672.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 0d88e76..4dd93de 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -313,7 +313,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb,
         int fps;
         if (avio_rl32(pb) != MKTAG('V', 'I', 'D', 'O')) {
-            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-devel mailing list