Browse code

Do not claim that every unknown rm stream is a video stream.

Also reduce verbosity for the unsupported stream message, use
an AVFormatContext for av_log and and print the tag of the
unknown stream.

Improves ticket #672.

Carl Eugen Hoyos authored on 2011/11/25 07:47:06
Showing 1 changed files
... ...
@@ -313,7 +313,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb,
313 313
         int fps;
314 314
         if (avio_rl32(pb) != MKTAG('V', 'I', 'D', 'O')) {
315 315
         fail1:
316
-            av_log(st->codec, AV_LOG_ERROR, "Unsupported video codec\n");
316
+            av_log(s, AV_LOG_WARNING, "Unsupported stream type %08x\n", v);
317 317
             goto skip;
318 318
         }
319 319
         st->codec->codec_tag = avio_rl32(pb);