Browse Source

avcodec/flashsv: stop using deprecated avcodec_set_dimensions

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.2-rc1
Paul B Mahol 12 years ago
parent
commit
6e094f7026
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/flashsv.c

+ 2
- 1
libavcodec/flashsv.c View 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 */


Loading…
Cancel
Save