Commit 9522a752 authored by Michael Niedermayer's avatar Michael Niedermayer

xsubenc: only 1 rectangle is supported so dont allow 0 as it would crash.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d7c91c4c
......@@ -129,7 +129,7 @@ static int xsub_encode(AVCodecContext *avctx, unsigned char *buf,
}
// TODO: support multiple rects
if (h->num_rects > 1)
if (h->num_rects != 1)
av_log(avctx, AV_LOG_WARNING, "Only single rects supported (%d in subtitle.)\n", h->num_rects);
// TODO: render text-based subtitles into bitmaps
......
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