Commit 75c4d160 authored by michael's avatar michael

Make sure avcodec_set_dimensions() is used when rv20 changes resolution.

This should fix lowres resolution changes.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20589 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 03782571
...@@ -370,8 +370,9 @@ static int rv20_decode_picture_header(MpegEncContext *s) ...@@ -370,8 +370,9 @@ static int rv20_decode_picture_header(MpegEncContext *s)
if (avcodec_check_dimensions(s->avctx, new_h, new_w) < 0) if (avcodec_check_dimensions(s->avctx, new_h, new_w) < 0)
return -1; return -1;
MPV_common_end(s); MPV_common_end(s);
s->width = s->avctx->width = new_w; avcodec_set_dimensions(s->avctx, new_w, new_h);
s->height = s->avctx->height= new_h; s->width = new_w;
s->height = new_h;
if (MPV_common_init(s) < 0) if (MPV_common_init(s) < 0)
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment