mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/bintext: Add error message when resolution is too small for font.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
b91786360f
commit
dd9907847c
|
@ -93,8 +93,10 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (avctx->width < FONT_WIDTH || avctx->height < s->font_height)
|
if (avctx->width < FONT_WIDTH || avctx->height < s->font_height) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Resolution too small for font.\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue