From 6e094f702639d150e5829f68fc9e28f1c532414d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 5 Nov 2013 12:36:24 +0000 Subject: avcodec/flashsv: stop using deprecated avcodec_set_dimensions Signed-off-by: Paul B Mahol --- libavcodec/flashsv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/flashsv.c') diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index f9af396650..8fbf13ba81 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -317,7 +317,8 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data, /* initialize the image size once */ if (avctx->width == 0 && avctx->height == 0) { - avcodec_set_dimensions(avctx, s->image_width, s->image_height); + if ((ret = ff_set_dimensions(avctx, s->image_width, s->image_height)) < 0) + return ret; } /* check for changes of image width and image height */ -- cgit v1.2.3