diff options
author | James Almer <jamrial@gmail.com> | 2021-07-21 01:02:44 -0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-10-06 14:41:42 +0200 |
commit | 76470ae27fc8cd48890ee0cb6ff20c46bd984f67 (patch) | |
tree | a76a1c463fba705ba13ad4c9a39137e35a1635bb /libavfilter/version.h | |
parent | 8be49a6c64a1904ba8142bfd9e0d1bfc471eeb10 (diff) | |
download | ffmpeg-76470ae27fc8cd48890ee0cb6ff20c46bd984f67.tar.gz |
avcodec/utils: don't return negative values in av_get_audio_frame_duration()
In some extrme cases, like with adpcm_ms samples with an extremely high channel
count, get_audio_frame_duration() may return a negative frame duration value.
Don't propagate it, and instead return 0, signaling that a duration could not
be determined.
Fixes ticket #9312
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit e01d306c647b5827102260b885faa223b646d2d1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/version.h')
0 files changed, 0 insertions, 0 deletions