# HG changeset patch # User michael # Date 1259004139 0 # Node ID 16f0933d2c7f953c5a1b23b6b58a0f782fbd5dfb # Parent f2f4d6fe3f6d7c32df444556fe1ea066a8eccc6d Make sure avcodec_set_dimensions() is used when rv20 changes resolution. This should fix lowres resolution changes. diff -r f2f4d6fe3f6d -r 16f0933d2c7f rv10.c --- a/rv10.c Sun Nov 22 22:25:58 2009 +0000 +++ b/rv10.c Mon Nov 23 19:22:19 2009 +0000 @@ -370,8 +370,9 @@ if (avcodec_check_dimensions(s->avctx, new_h, new_w) < 0) return -1; MPV_common_end(s); - s->width = s->avctx->width = new_w; - s->height = s->avctx->height= new_h; + avcodec_set_dimensions(s->avctx, new_w, new_h); + s->width = new_w; + s->height = new_h; if (MPV_common_init(s) < 0) return -1; }