diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-11-05 12:36:24 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-11-05 12:36:24 +0000 |
commit | 6e094f702639d150e5829f68fc9e28f1c532414d (patch) | |
tree | d84621cc0d79e6df11b0d9f95e2b24964fbf7814 /libavcodec/flashsv.c | |
parent | 22c00962c283818b78213fcf72a2f0e6dcc16447 (diff) | |
download | ffmpeg-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.c | 3 |
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 */ |