Commit 7a7f3bec authored by michael's avatar michael

supporting files with A,V,I,0x19 header


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7876 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ecd44b84
...@@ -82,6 +82,9 @@ static int get_riff(AVIContext *avi, ByteIOContext *pb) ...@@ -82,6 +82,9 @@ static int get_riff(AVIContext *avi, ByteIOContext *pb)
avi->riff_end = get_le32(pb); /* RIFF chunk size */ avi->riff_end = get_le32(pb); /* RIFF chunk size */
avi->riff_end += url_ftell(pb); /* RIFF chunk end */ avi->riff_end += url_ftell(pb); /* RIFF chunk end */
tag = get_le32(pb); 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')) if (tag != MKTAG('A', 'V', 'I', ' ') && tag != MKTAG('A', 'V', 'I', 'X'))
return -1; return -1;
...@@ -996,7 +999,7 @@ static int avi_probe(AVProbeData *p) ...@@ -996,7 +999,7 @@ static int avi_probe(AVProbeData *p)
if (p->buf[0] == 'R' && p->buf[1] == 'I' && if (p->buf[0] == 'R' && p->buf[1] == 'I' &&
p->buf[2] == 'F' && p->buf[3] == 'F' && p->buf[2] == 'F' && p->buf[3] == 'F' &&
p->buf[8] == 'A' && p->buf[9] == 'V' && 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; return AVPROBE_SCORE_MAX;
else else
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment