mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
xsubenc: only 1 rectangle is supported so dont allow 0 as it would crash.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d7c91c4cea
commit
9522a752bf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user