Mercurial > libavcodec.hg
changeset 10558:16f0933d2c7f libavcodec
Make sure avcodec_set_dimensions() is used when rv20 changes resolution.
This should fix lowres resolution changes.
author | michael |
---|---|
date | Mon, 23 Nov 2009 19:22:19 +0000 |
parents | f2f4d6fe3f6d |
children | 93b8130bf480 |
files | rv10.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; }