# HG changeset patch # User cehoyos # Date 1264373270 0 # Node ID 6d22c964c601b4b6528efadc7228a6c6c616b8a6 # Parent 7cfb7bb6e554099e80ef2362560aa37430426873 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. diff -r 7cfb7bb6e554 -r 6d22c964c601 mpeg12.c --- a/mpeg12.c Sun Jan 24 20:54:09 2010 +0000 +++ b/mpeg12.c Sun Jan 24 22:47:50 2010 +0000 @@ -2092,6 +2092,9 @@ 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; }