aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-11-24 06:05:41 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-11-24 06:05:41 +0000
commitd90aeeaf569e4a08c30b3d1d09c3cff3a86eb431 (patch)
tree8089d4b72423207591e1f38e5e20641764f6f585 /libavcodec
parent9401357f01224c4875f706853f431a84efc3a79c (diff)
downloadffmpeg-d90aeeaf569e4a08c30b3d1d09c3cff3a86eb431.tar.gz
Call avcodec_set_dimensions() instead of simply setting avctx->width/height
when frame dimensions change in RV3/4. Originally committed as revision 20595 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/rv34.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index d3892b93fd..50ded79977 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -1285,8 +1285,9 @@ 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 = s->avctx->width = r->si.width;
- s->height = s->avctx->height = r->si.height;
+ s->width = r->si.width;
+ s->height = r->si.height;
+ avcodec_set_dimensions(s->avctx, s->width, s->height);
if(MPV_common_init(s) < 0)
return -1;
r->intra_types_stride = s->mb_width*4 + 4;