Browse Source

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>
tags/n2.7
Carl Eugen Hoyos Vittorio Giovara 10 years ago
parent
commit
0f9f7969ef
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rmdec.c

+ 1
- 1
libavformat/rmdec.c View File

@@ -313,7 +313,7 @@ int 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);


Loading…
Cancel
Save