Commit 04f6a523 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c7384664'

* commit 'c7384664':
  avs: check ff_set_dimensions return value
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b697a331 c7384664
......@@ -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)
......
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