summaryrefslogtreecommitdiff
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-11-22 07:48:35 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-11-22 07:48:35 +0000
commitec10d2d53999f6edf7d7b5ac88df263eccfb1fb0 (patch)
tree8a114a026272dd73950de5672f29e7d4b690987e /libavcodec/rv34.c
parentaca857ecd37aaca7b48117f9d4b107dce143e3e6 (diff)
downloadffmpeg-ec10d2d53999f6edf7d7b5ac88df263eccfb1fb0.tar.gz
Update dimensions in AVCodecContext when RV3/4 frame dimensions change
Originally committed as revision 20572 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r--libavcodec/rv34.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 0c2a4cf464..d3892b93fd 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -1285,8 +1285,8 @@ static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int
if(s->width != r->si.width || s->height != r->si.height){
av_log(s->avctx, AV_LOG_DEBUG, "Changing dimensions to %dx%d\n", r->si.width,r->si.height);
MPV_common_end(s);
- s->width = r->si.width;
- s->height = r->si.height;
+ s->width = s->avctx->width = r->si.width;
+ s->height = s->avctx->height = r->si.height;
if(MPV_common_init(s) < 0)
return -1;
r->intra_types_stride = s->mb_width*4 + 4;