--- libavcodec/rv34.c.orig 2011-03-21 17:27:05.612380001 +0000 +++ libavcodec/rv34.c 2011-03-21 17:28:04.032380001 +0000 @@ -1285,8 +1285,8 @@ static int rv34_decode_slice(RV34DecCont 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; avcodec_set_dimensions(s->avctx, s->width, s->height); if(MPV_common_init(s) < 0) return -1;