James Almer
76470ae27f
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-10-06 14:41:42 +02:00
..
2021-02-27 07:20:59 +01:00
2021-10-06 14:41:40 +02:00
2021-02-27 07:20:59 +01:00
2021-10-06 14:41:41 +02:00
2021-02-02 14:18:21 +01:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:57 +01:00
2021-10-06 14:41:41 +02:00
2021-02-02 14:18:21 +01:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:57 +01:00
2021-02-27 07:20:57 +01:00
2021-02-27 07:20:57 +01:00
2021-02-27 07:20:57 +01:00
2021-02-27 07:20:58 +01:00
2021-02-02 14:18:20 +01:00
2021-02-02 14:18:21 +01:00
2021-10-06 14:41:41 +02:00
2021-02-02 14:18:21 +01:00
2021-10-06 14:41:41 +02:00
2021-02-02 14:18:22 +01:00
2021-10-06 14:41:40 +02:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:58 +01:00
2021-02-02 14:18:20 +01:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:59 +01:00
2021-02-27 07:20:59 +01:00
2021-02-27 07:20:59 +01:00
2021-02-27 07:20:57 +01:00
2021-10-06 14:41:40 +02:00
2021-02-27 07:20:57 +01:00
2021-10-06 14:41:41 +02:00
2021-02-20 14:21:24 +01:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:57 +01:00
2021-02-27 07:20:57 +01:00
2021-04-03 21:35:48 +02:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:59 +01:00
2021-02-27 07:20:57 +01:00
2021-04-03 21:35:48 +02:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-02-02 14:18:21 +01:00
2021-10-06 14:41:41 +02:00
2021-02-20 14:21:24 +01:00
2021-02-20 14:21:24 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2021-02-20 14:21:24 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:57 +01:00
2021-02-27 07:20:57 +01:00
2021-02-27 07:20:58 +01:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-02-02 14:18:21 +01:00
2021-02-27 07:20:57 +01:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-04-03 21:35:48 +02:00
2021-02-27 07:20:57 +01:00
2021-02-27 07:20:58 +01:00
2021-02-27 07:20:58 +01:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:59 +01:00
2021-02-27 07:20:58 +01:00
2021-04-03 21:35:48 +02:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:59 +01:00
2021-02-02 14:18:21 +01:00
2021-02-27 07:21:00 +01:00
2021-02-19 22:17:34 +01:00
2021-02-27 07:20:59 +01:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:59 +01:00
2021-02-27 07:20:57 +01:00
2021-02-02 14:18:21 +01:00
2021-02-20 14:21:24 +01:00
2021-10-06 14:41:41 +02:00
2021-04-03 21:35:48 +02:00
2021-04-03 21:35:48 +02:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:58 +01:00
2021-02-02 14:18:22 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:21:00 +01:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:57 +01:00
2021-02-02 14:18:20 +01:00
2021-02-27 07:20:57 +01:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:42 +02:00
2021-02-02 14:18:20 +01:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-10-06 14:41:41 +02:00
2021-02-27 07:20:58 +01:00
2021-02-02 14:18:21 +01:00
2021-02-20 14:21:24 +01:00
2021-02-20 14:21:24 +01:00
2021-02-27 07:20:59 +01:00
2021-10-06 14:41:41 +02:00
2021-02-02 14:18:21 +01:00
2021-04-03 21:35:48 +02:00
2021-02-27 07:20:57 +01:00
2021-10-06 14:41:41 +02:00