aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flashsv.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-11-05 12:36:24 +0000
committerPaul B Mahol <onemda@gmail.com>2013-11-05 12:36:24 +0000
commit6e094f702639d150e5829f68fc9e28f1c532414d (patch)
treed84621cc0d79e6df11b0d9f95e2b24964fbf7814 /libavcodec/flashsv.c
parent22c00962c283818b78213fcf72a2f0e6dcc16447 (diff)
downloadffmpeg-6e094f702639d150e5829f68fc9e28f1c532414d.tar.gz
avcodec/flashsv: stop using deprecated avcodec_set_dimensions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r--libavcodec/flashsv.c3
1 files changed, 2 insertions, 1 deletions
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 */