Commit 613c2c47 authored by cehoyos's avatar cehoyos

Fix decoding ATI VCR2 codec, sample in

samples/V-codecs/ATI-VCR12/ATI/VCR2test.avi
Software decoding was broken since r8865, when two new context variables
were added, but not initialized in vcr2_init_sequence().
Another such context variable was added in r18381.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21438 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0870089a
......@@ -2092,6 +2092,9 @@ static int vcr2_init_sequence(AVCodecContext *avctx)
s->chroma_format = 1;
s->codec_id= s->avctx->codec_id= CODEC_ID_MPEG2VIDEO;
avctx->sub_id = 2; /* indicates MPEG-2 */
s1->save_width = s->width;
s1->save_height = s->height;
s1->save_progressive_seq = s->progressive_sequence;
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