From 4b2f696d6e502c46e91dfe184c7b745f78b35a03 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 Nov 2012 00:21:16 +0100 Subject: flashv: use avcodec_set_dimensions() Signed-off-by: Michael Niedermayer --- libavcodec/flashsv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/flashsv.c') diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index ee97521874..643dab334a 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -304,8 +304,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data, /* initialize the image size once */ if (avctx->width == 0 && avctx->height == 0) { - avctx->width = s->image_width; - avctx->height = s->image_height; + avcodec_set_dimensions(avctx, s->image_width, s->image_height); } /* check for changes of image width and image height */ -- cgit v1.2.3