[FFmpeg-cvslog] lavf/img2dec: fix out-of-range check in find_image_range()
Stefano Sabatini
git at videolan.org
Sun Aug 5 00:40:10 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Aug 4 17:07:26 2012 +0200| [07ef7b1a303680b73fc4a014f74a6d5089725184] | committer: Stefano Sabatini
lavf/img2dec: fix out-of-range check in find_image_range()
Take the new parameter start_index into account.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=07ef7b1a303680b73fc4a014f74a6d5089725184
---
libavformat/img2dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 */
More information about the ffmpeg-cvslog
mailing list