1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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.
This commit is contained in:
Carl Eugen Hoyos 2011-11-24 23:47:06 +01:00
parent e421b79d01
commit 3880b4541a

View File

@ -313,7 +313,7 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb,
int fps; int fps;
if (avio_rl32(pb) != MKTAG('V', 'I', 'D', 'O')) { if (avio_rl32(pb) != MKTAG('V', 'I', 'D', 'O')) {
fail1: 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; goto skip;
} }
st->codec->codec_tag = avio_rl32(pb); st->codec->codec_tag = avio_rl32(pb);