Browse Source

avformat/apngdec: exit probing when skipping is not possible.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Benoit Fouet Michael Niedermayer 10 years ago
parent
commit
d7716961a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/apngdec.c

+ 1
- 1
libavformat/apngdec.c View File

@@ -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) {


Loading…
Cancel
Save