mirror of https://git.ffmpeg.org/ffmpeg.git
dvbsubdec: fix x/y_pos checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
24fb1b64a6
commit
55f17d3175
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue