diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-02-07 17:56:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-02-07 17:56:31 +0000 |
commit | d09ea618ede31c4790c31f6f3f1a1c2d7192ed4c (patch) | |
tree | 8c68cd5e1c2db2fd3fbd2fbe472bd9f0520f7bde | |
parent | 5959a29893fd7d807ab284c2670f43037b6059dc (diff) | |
download | ffmpeg-d09ea618ede31c4790c31f6f3f1a1c2d7192ed4c.tar.gz |
supporting files with A,V,I,0x19 header
Originally committed as revision 7876 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avidec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index e7a84107d2..935490da2a 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -82,6 +82,9 @@ static int get_riff(AVIContext *avi, ByteIOContext *pb) avi->riff_end = get_le32(pb); /* RIFF chunk size */ avi->riff_end += url_ftell(pb); /* RIFF chunk end */ tag = get_le32(pb); + if(tag == MKTAG('A', 'V', 'I', 0x19)) + av_log(NULL, AV_LOG_INFO, "file has been generated with a totally broken muxer\n"); + else if (tag != MKTAG('A', 'V', 'I', ' ') && tag != MKTAG('A', 'V', 'I', 'X')) return -1; @@ -996,7 +999,7 @@ static int avi_probe(AVProbeData *p) if (p->buf[0] == 'R' && p->buf[1] == 'I' && p->buf[2] == 'F' && p->buf[3] == 'F' && p->buf[8] == 'A' && p->buf[9] == 'V' && - p->buf[10] == 'I' && p->buf[11] == ' ') + p->buf[10] == 'I' && (p->buf[11] == ' ' || p->buf[11] == 0x19)) return AVPROBE_SCORE_MAX; else return 0; |