Browse Source

lavf/avidec: Do not fail for very large idx1 tags.

Fixes demuxing the sample file from github pull request 197,
the size of its idx1 tag is 6171936 bytes, followed by a JUNK
tag of 9505704 bytes.
tags/n3.2
Carl Eugen Hoyos 9 years ago
parent
commit
a20f3238be
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/avidec.c

+ 2
- 0
libavformat/avidec.c View File

@@ -993,6 +993,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
avi->movi_end = avi->fsize;
goto end_of_header;
}
/* Do not fail for very large idx1 tags */
case MKTAG('i', 'd', 'x', '1'):
/* skip tag */
size += (size & 1);
avio_skip(pb, size);


Loading…
Cancel
Save