Browse Source

avs: check ff_set_dimensions return value

CC: libav-stable@libav.org
Bug-Id: CID 1135738
tags/n2.5
Vittorio Giovara 11 years ago
parent
commit
c7384664ba
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/avs.c

+ 1
- 2
libavcodec/avs.c View File

@@ -165,9 +165,8 @@ static av_cold int avs_decode_init(AVCodecContext * avctx)
return AVERROR(ENOMEM);

avctx->pix_fmt = AV_PIX_FMT_PAL8;
ff_set_dimensions(avctx, 318, 198);

return 0;
return ff_set_dimensions(avctx, 318, 198);
}

static av_cold int avs_decode_end(AVCodecContext *avctx)


Loading…
Cancel
Save