Mercurial > libavformat.hg
changeset 5522:7698da6e1f0a libavformat
Support uncompressed ("Resolution 1:1") Avid AVI Codec, (partially) fixes issue 1474.
author | cehoyos |
---|---|
date | Tue, 12 Jan 2010 00:29:26 +0000 |
parents | ab2af3bc94f6 |
children | d854655b2042 |
files | avidec.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Mon Jan 11 19:55:14 2010 +0000 +++ b/avidec.c Tue Jan 12 00:29:26 2010 +0000 @@ -518,6 +518,11 @@ st->codec->codec_tag = tag1; st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag1); st->need_parsing = AVSTREAM_PARSE_HEADERS; // This is needed to get the pict type which is necessary for generating correct pts. + // Support "Resolution 1:1" for Avid AVI Codec + if(tag1 == MKTAG('A', 'V', 'R', 'n') && + st->codec->extradata_size >= 31 && + !memcmp(&st->codec->extradata[28], "1:1", 3)) + st->codec->codec_id = CODEC_ID_RAWVIDEO; if(st->codec->codec_tag==0 && st->codec->height > 0 && st->codec->extradata_size < 1U<<30){ st->codec->extradata_size+= 9;