Revision 31247669 libavformat/asfdec.c

View differences:

libavformat/asfdec.c
396 396

  
397 397
                st->codec->codec_tag = tag1;
398 398
                st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag1);
399
                if(tag1 == MKTAG('D', 'V', 'R', ' '))
399
                if(tag1 == MKTAG('D', 'V', 'R', ' ')){
400 400
                    st->need_parsing = AVSTREAM_PARSE_FULL;
401
                    // issue658 containse wrong w/h and MS even puts a fake seq header with wrong w/h in extradata while a correct one is in te stream. maximum lameness
402
                    st->codec->width  =
403
                    st->codec->height = 0;
404
                    av_freep(&st->codec->extradata);
405
                    st->codec->extradata_size=0;
406
                }
401 407
                if(st->codec->codec_id == CODEC_ID_H264)
402 408
                    st->need_parsing = AVSTREAM_PARSE_FULL_ONCE;
403 409
            }

Also available in: Unified diff