# HG changeset patch # User kostya # Date 1259042741 0 # Node ID 93f1f9d9d8477b409f83c621901c0ced64c96e3d # Parent 51b5f85c50646cf960f09599c708b20df6010d29 Call avcodec_set_dimensions() instead of simply setting avctx->width/height when frame dimensions change in RV3/4. diff -r 51b5f85c5064 -r 93f1f9d9d847 rv34.c --- a/rv34.c Mon Nov 23 22:28:45 2009 +0000 +++ b/rv34.c Tue Nov 24 06:05:41 2009 +0000 @@ -1285,8 +1285,9 @@ 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;