diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-04 19:01:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-04 23:33:59 +0200 |
commit | 9522a752bf4179b69fa9e334ee755405ba8f4459 (patch) | |
tree | 54fc3a101b5a43072a4b014e0d91cbcd9c78eb40 /libavcodec | |
parent | d7c91c4ceac07c0274e06f2aa19b2fee8337dd47 (diff) | |
download | ffmpeg-9522a752bf4179b69fa9e334ee755405ba8f4459.tar.gz |
xsubenc: only 1 rectangle is supported so dont allow 0 as it would crash.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/xsubenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xsubenc.c b/libavcodec/xsubenc.c index c448a2271c..a7e3a891d4 100644 --- a/libavcodec/xsubenc.c +++ b/libavcodec/xsubenc.c @@ -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 |