diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-03-05 16:42:45 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-08 02:35:04 +0000 |
commit | 0f9f7969ef4df3661131cede3e8cc770e1ea3db8 (patch) | |
tree | 8da964abe0384a0bd8f6e38978e0a0ddaff470a6 /libavformat/rmdec.c | |
parent | b77e335e441040a40fc6156b8e4a134745d10233 (diff) | |
download | ffmpeg-0f9f7969ef4df3661131cede3e8cc770e1ea3db8.tar.gz |
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@gmail.com>
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r-- | libavformat/rmdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 15077646db..e2cf61f590 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); |