[FFmpeg-cvslog] avformat/apngdec: exit probing when skipping is not possible.
Benoit Fouet
git at videolan.org
Tue Dec 2 16:08:29 CET 2014
ffmpeg | branch: master | Benoit Fouet <benoit.fouet at free.fr> | Tue Dec 2 11:24:21 2014 +0100| [d7716961a856e0d6fcd23d82a5cb87c3a8439e4b] | committer: Michael Niedermayer
avformat/apngdec: exit probing when skipping is not possible.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7716961a856e0d6fcd23d82a5cb87c3a8439e4b
---
libavformat/apngdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index 189480e..d97b015 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -87,7 +87,7 @@ static int apng_probe(AVProbeData *p)
/* we don't check IDAT size, as this is the last tag
* we check, and it may be larger than the probe buffer */
if (tag != MKTAG('I', 'D', 'A', 'T') &&
- len > bytestream2_get_bytes_left(&gb))
+ len + 4 > bytestream2_get_bytes_left(&gb))
return 0;
switch (tag) {
More information about the ffmpeg-cvslog
mailing list