diff options
author | JULIAN GARDNER <joolzg@btinternet.com> | 2011-10-14 17:39:33 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-14 22:19:59 +0400 |
commit | 55f17d3175e5d0e6541ef432a88154e0210a9c10 (patch) | |
tree | 2ebc70b8473585388880d03ad1cf265c347582e1 /libavcodec/dvbsubdec.c | |
parent | 24fb1b64a61eaf9026136222ca0855aaf04b5527 (diff) |
dvbsubdec: fix x/y_pos checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r-- | libavcodec/dvbsubdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 29bed9ace2..38908abf7d 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -793,8 +793,8 @@ static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDis y_pos++; while (buf < buf_end) { - if (x_pos > region->width || y_pos > region->height) { - av_log(avctx, AV_LOG_ERROR, "Invalid object location!\n"); + if (x_pos >= region->width || y_pos >= region->height) { + av_log(avctx, AV_LOG_ERROR, "Invalid object location! %d-%d %d-%d %02x\n", x_pos, region->width, y_pos, region->height, *buf); return; } |