[FFmpeg-cvslog] r20589 - trunk/libavcodec/rv10.c
michael
subversion
Mon Nov 23 20:22:19 CET 2009
Author: michael
Date: Mon Nov 23 20:22:19 2009
New Revision: 20589
Log:
Make sure avcodec_set_dimensions() is used when rv20 changes resolution.
This should fix lowres resolution changes.
Modified:
trunk/libavcodec/rv10.c
Modified: trunk/libavcodec/rv10.c
==============================================================================
--- trunk/libavcodec/rv10.c Mon Nov 23 19:18:21 2009 (r20588)
+++ trunk/libavcodec/rv10.c Mon Nov 23 20:22:19 2009 (r20589)
@@ -370,8 +370,9 @@ static int rv20_decode_picture_header(Mp
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;
}
More information about the ffmpeg-cvslog
mailing list