FFmpeg/libavcodec
James Almer dfb9a3f7f3 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>
2021-09-09 13:59:05 +02:00
..
2021-09-09 13:54:52 +02:00
2020-07-01 22:25:21 +02:00
2021-09-09 13:37:21 +02:00
2020-01-06 15:03:15 +01:00
2021-09-09 13:53:29 +02:00
2020-07-03 12:10:24 +02:00
2021-09-09 13:54:52 +02:00
2020-01-06 15:03:15 +01:00
2020-07-03 12:10:24 +02:00
2021-09-09 13:53:29 +02:00
2020-07-03 12:10:24 +02:00
2020-07-03 12:10:24 +02:00
2021-09-09 13:37:20 +02:00
2020-07-03 12:10:23 +02:00
2020-07-03 12:10:23 +02:00
2021-09-09 13:37:20 +02:00
2021-09-09 13:37:20 +02:00
2020-07-01 22:18:52 +02:00