summaryrefslogtreecommitdiff
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-04-23 07:14:02 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-04-23 07:14:02 +0000
commitb750fb6945626a7c6255af883d3d7073a32aaf09 (patch)
treefbef8ddf355c4a57c3c38dcbd9a84d465f7b84f5 /libavcodec/vc1.c
parente1b3d272729000b05bb6880a2ec904e61527ae37 (diff)
Display dimensions should not affect the real size of coded frame, thus set
only avctx->{width,height} and don't touch coded_{width,height} when parsing them. This fixes the case when coded and display dimensions differ by more than one macroblock. Originally committed as revision 18665 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 99dc4abad7..c536330089 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -975,8 +975,8 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb)
if(get_bits1(gb)) { //Display Info - decoding is not affected by it
int w, h, ar = 0;
av_log(v->s.avctx, AV_LOG_DEBUG, "Display extended info:\n");
- v->s.avctx->coded_width = w = get_bits(gb, 14) + 1;
- v->s.avctx->coded_height = h = get_bits(gb, 14) + 1;
+ v->s.avctx->width = w = get_bits(gb, 14) + 1;
+ v->s.avctx->height = h = get_bits(gb, 14) + 1;
av_log(v->s.avctx, AV_LOG_DEBUG, "Display dimensions: %ix%i\n", w, h);
if(get_bits1(gb))
ar = get_bits(gb, 4);