diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-11-23 22:22:19 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-11-23 22:22:19 +0300 |
commit | 4687f908c61125e8d7b89b756ce54e1d55af29f3 (patch) | |
tree | e74c7f3e5828f49a17891fef2fa2859008805c8a /libavcodec/rv10.c | |
parent | c261a5d927a2bb4288983e386f1513f8b1108e71 (diff) |
Make sure avcodec_set_dimensions() is used when rv20 changes resolution.
This should fix lowres resolution changes.
Originally committed as revision 20589 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv10.c')
-rw-r--r-- | libavcodec/rv10.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index d552bf9501..1e5907433c 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -370,8 +370,9 @@ static int rv20_decode_picture_header(MpegEncContext *s) 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; } |