diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-04 17:07:26 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-08-05 00:38:05 +0200 |
commit | 07ef7b1a303680b73fc4a014f74a6d5089725184 (patch) | |
tree | ffe4f622a6a5c8dabb40c6cb5f538108a74929d6 /libavformat/img2dec.c | |
parent | 59e4e406732d856bd0ac39ac40c985fe3014b2b4 (diff) | |
download | ffmpeg-07ef7b1a303680b73fc4a014f74a6d5089725184.tar.gz |
lavf/img2dec: fix out-of-range check in find_image_range()
Take the new parameter start_index into account.
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 2 |
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 */ |