[SCM] libav/experimental: Make sure avcodec_set_dimensions() is used when rv20 changes resolution. This should fix lowres resolution changes.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:54:47 UTC 2013
The following commit has been merged in the experimental branch:
commit 4687f908c61125e8d7b89b756ce54e1d55af29f3
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Mon Nov 23 19:22:19 2009 +0000
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
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index d552bf9..1e59074 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;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list