aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/cmdutils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-09-04 00:50:11 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-02 23:58:21 +0200
commit86a30618c9863df8470a9a955d19a37189ed9e65 (patch)
treeb937f488f19bf6b5e68f8e4173ab0d63850b8592 /fftools/cmdutils.c
parent6132ea3daf23fb03314f7fc00275f438a1cea07e (diff)
downloadffmpeg-86a30618c9863df8470a9a955d19a37189ed9e65.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 'fftools/cmdutils.c')
0 files changed, 0 insertions, 0 deletions