Ticket #1708: dvbsubdecpatch.txt

File dvbsubdecpatch.txt, 501 bytes (added by dm@…, 19 years ago)
Line 
1Index: libs/libavcodec/dvbsubdec.c
2===================================================================
3--- libs/libavcodec/dvbsubdec.c (revision 9772)
4+++ libs/libavcodec/dvbsubdec.c (working copy)
5@@ -765,7 +765,7 @@
6         y_pos++;
7 
8     while (buf < buf_end) {
9-        if (x_pos > region->width || y_pos > region->height) {
10+        if (x_pos >= region->width || y_pos >= region->height) {
11             av_log(avctx, AV_LOG_ERROR, "Invalid object location!\n");
12             return;
13         }