diff options
author | James Almer <[email protected]> | 2021-07-21 01:02:44 -0300 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2021-10-06 14:41:42 +0200 |
commit | 76470ae27fc8cd48890ee0cb6ff20c46bd984f67 (patch) | |
tree | a76a1c463fba705ba13ad4c9a39137e35a1635bb /doc/examples/demuxing_decoding.c | |
parent | 8be49a6c64a1904ba8142bfd9e0d1bfc471eeb10 (diff) |
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 <[email protected]>
(cherry picked from commit e01d306c647b5827102260b885faa223b646d2d1)
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'doc/examples/demuxing_decoding.c')
0 files changed, 0 insertions, 0 deletions