aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/x86
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-07-21 01:02:44 -0300
committerMichael Niedermayer <michael@niedermayer.cc>2021-09-09 13:59:05 +0200
commitdfb9a3f7f3ca35eb2dbedb79d117bf14a796e709 (patch)
treec4147052757efb70d4fa6f57dd50684254c3e378 /tests/checkasm/x86
parent608be8437b70ef672901be1fe80dfc5bed43ad11 (diff)
downloadffmpeg-dfb9a3f7f3ca35eb2dbedb79d117bf14a796e709.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 'tests/checkasm/x86')
0 files changed, 0 insertions, 0 deletions