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 | |
parent | 59e4e406732d856bd0ac39ac40c985fe3014b2b4 (diff) | |
download | ffmpeg-streaming-07ef7b1a303680b73fc4a014f74a6d5089725184.zip ffmpeg-streaming-07ef7b1a303680b73fc4a014f74a6d5089725184.tar.gz |
lavf/img2dec: fix out-of-range check in find_image_range()
Take the new parameter start_index into account.
-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 e531214..63a2a59 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 */ |