diff options
author | Andreas Rheinhardt <[email protected]> | 2019-05-17 00:30:21 +0200 |
---|---|---|
committer | James Almer <[email protected]> | 2019-07-16 16:18:10 -0300 |
commit | 806ac7da6927c1a9db2d6bc7af272733078964a0 (patch) | |
tree | 211684c9f7bfa53d350ce7355f26a6e7f09000cf /libavcodec/parser.c | |
parent | 730ac1ae803925777702eeaef4d1b8b796126e8f (diff) |
avformat/matroskadec: Improve check for level 1 duplicates
If a file uses unknown-length level 1 elements besides clusters and such
elements are after the first cluster, then these elements will usually
be parsed twice: Once during parsing of the file header and once when
reading the file reaches the position where these elements are located.
The second time the element is parsed leads to a "Duplicate element"
error message. Known-length elements are not affected by this as they
are skipped except during parsing the header.
This commit fixes this by explicitly adding a check for whether the
position of the element to be parsed is the same as the position of the
already known level 1 element.
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavcodec/parser.c')
0 files changed, 0 insertions, 0 deletions