aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg_cuvid.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-07-21 01:02:44 -0300
committerMichael Niedermayer <michael@niedermayer.cc>2021-10-09 22:02:21 +0200
commit94551f3197a8570b13830f636c68f3507cd0bb7b (patch)
tree0d3c2fb216f201d7f86957293ae2fd27c5f1fe91 /ffmpeg_cuvid.c
parent891bf1f8ad066f44ab5b9b276710ba24fdf5373e (diff)
downloadffmpeg-94551f3197a8570b13830f636c68f3507cd0bb7b.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 'ffmpeg_cuvid.c')
0 files changed, 0 insertions, 0 deletions