av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)

Originally committed as revision 2840 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michel Bardiaux
2004-03-03 15:41:21 +00:00
committed by Michael Niedermayer
parent 81c5f88748
commit bc874daea8
25 changed files with 134 additions and 95 deletions

View File

@@ -636,7 +636,7 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap)
} else {
if (get_le32(pb) != MKTAG('V', 'I', 'D', 'O')) {
fail1:
fprintf(stderr, "Unsupported video codec\n");
av_log(&st->codec, AV_LOG_ERROR, "Unsupported video codec\n");
goto fail;
}
st->codec.codec_tag = get_le32(pb);