summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-08-04 17:07:26 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-08-05 00:38:05 +0200
commit07ef7b1a303680b73fc4a014f74a6d5089725184 (patch)
treeffe4f622a6a5c8dabb40c6cb5f538108a74929d6 /libavformat
parent59e4e406732d856bd0ac39ac40c985fe3014b2b4 (diff)
lavf/img2dec: fix out-of-range check in find_image_range()
Take the new parameter start_index into account.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/img2dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index e531214427..63a2a598b5 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -135,7 +135,7 @@ static int find_image_range(int *pfirst_index, int *plast_index,
if (avio_check(buf, AVIO_FLAG_READ) > 0)
break;
}
- if (first_index == 5)
+ if (first_index == start_index + 5)
goto fail;
/* find the last image */