avcodec/flashsv: stop using deprecated avcodec_set_dimensions
authorPaul B Mahol <onemda@gmail.com>
Tue, 5 Nov 2013 12:36:24 +0000 (12:36 +0000)
committerPaul B Mahol <onemda@gmail.com>
Tue, 5 Nov 2013 12:36:24 +0000 (12:36 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/flashsv.c

index f9af396..8fbf13b 100644 (file)
@@ -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 */