Commit c7384664 authored by Vittorio Giovara's avatar Vittorio Giovara

avs: check ff_set_dimensions return value

CC: libav-stable@libav.org
Bug-Id: CID 1135738
parent 2b5c1efa
...@@ -165,9 +165,8 @@ static av_cold int avs_decode_init(AVCodecContext * avctx) ...@@ -165,9 +165,8 @@ static av_cold int avs_decode_init(AVCodecContext * avctx)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
avctx->pix_fmt = AV_PIX_FMT_PAL8; 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) static av_cold int avs_decode_end(AVCodecContext *avctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment