Revision 0941ee0f libavformat/avidec.c

View differences:

libavformat/avidec.c
518 518
                    st->codec->codec_tag = tag1;
519 519
                    st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag1);
520 520
                    st->need_parsing = AVSTREAM_PARSE_HEADERS; // This is needed to get the pict type which is necessary for generating correct pts.
521
                    // Support "Resolution 1:1" for Avid AVI Codec
522
                    if(tag1 == MKTAG('A', 'V', 'R', 'n') &&
523
                       st->codec->extradata_size >= 31 &&
524
                       !memcmp(&st->codec->extradata[28], "1:1", 3))
525
                        st->codec->codec_id = CODEC_ID_RAWVIDEO;
521 526

  
522 527
                    if(st->codec->codec_tag==0 && st->codec->height > 0 && st->codec->extradata_size < 1U<<30){
523 528
                        st->codec->extradata_size+= 9;

Also available in: Unified diff