diff options
author | James Almer <jamrial@gmail.com> | 2021-07-21 01:02:44 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-08-06 21:22:49 -0300 |
commit | e01d306c647b5827102260b885faa223b646d2d1 (patch) | |
tree | 17a2eb1f33f6cc5fbeafb00b8c386e6582341c22 /tests/ref/fate/ffprobe_ini | |
parent | 35331aa2662d4289585ab1bd4d1bf7699661cc5a (diff) | |
download | ffmpeg-e01d306c647b5827102260b885faa223b646d2d1.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>
Diffstat (limited to 'tests/ref/fate/ffprobe_ini')
0 files changed, 0 insertions, 0 deletions