Mercurial > libavformat.hg
changeset 1761:e9bff647e326 libavformat
supporting files with A,V,I,0x19 header
author | michael |
---|---|
date | Wed, 07 Feb 2007 17:56:31 +0000 |
parents | 8cba5672faa4 |
children | cb8b538021cd |
files | avidec.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Wed Feb 07 01:48:09 2007 +0000 +++ b/avidec.c Wed Feb 07 17:56:31 2007 +0000 @@ -82,6 +82,9 @@ 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 @@ 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;