Commit 057b74d1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '994ab180'

* commit '994ab180':
  ansi: check ff_set_dimensions return value
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 04f6a523 994ab180
......@@ -90,9 +90,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
s->fg = DEFAULT_FG_COLOR;
s->bg = DEFAULT_BG_COLOR;
if (!avctx->width || !avctx->height)
ff_set_dimensions(avctx, 80 << 3, 25 << 4);
if (!avctx->width || !avctx->height) {
int ret = ff_set_dimensions(avctx, 80 << 3, 25 << 4);
if (ret < 0)
return ret;
}
return 0;
}
......
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