summaryrefslogtreecommitdiff
path: root/libavcodec/flashsv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-13 00:21:16 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-13 00:21:45 +0100
commit4b2f696d6e502c46e91dfe184c7b745f78b35a03 (patch)
tree989ef74530433db7b07f7dde0727510be7dcca94 /libavcodec/flashsv.c
parent0a373c31cb7f8dae84857881cd7e3829a6483efe (diff)
flashv: use avcodec_set_dimensions()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r--libavcodec/flashsv.c3
1 files changed, 1 insertions, 2 deletions
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 */