diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-09-04 00:50:11 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-02 01:01:29 +0200 |
commit | 325498af97b2104070fbea974281a393a898672c (patch) | |
tree | f0e4268809a606b368328314d4cec20a85616754 /libavformat/hevc.h | |
parent | 96f18b64276b1172f344d729833bdb982d9d800f (diff) | |
download | ffmpeg-325498af97b2104070fbea974281a393a898672c.tar.gz |
avformat/matroskadec: Fix handling gigantic durations
matroska_parse_block currently asserts that the duration is not equal to
AV_NOPTS_VALUE, but there is nothing that actually guarantees this. It
is easy to create (spec-compliant) files which run into this assert;
so replace it and instead cap the duration to INT64_MAX, as the duration
field of an AVPacket is an int64_t.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 3714d452b894821591a2fbafdd1b8ef15abe4be6)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/hevc.h')
0 files changed, 0 insertions, 0 deletions