aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/vc1dec.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-06 13:56:53 +0200
commitd17624507ac5c2622fa8de74d213d8ba3df6387c (patch)
tree5d850b1d27b92b45e1388aa54ec1f82f269c7ef3 /libavformat/vc1dec.c
parentcfb2b5db9ea01a8ace595b24717612954d79af34 (diff)
downloadffmpeg-d17624507ac5c2622fa8de74d213d8ba3df6387c.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 'libavformat/vc1dec.c')
0 files changed, 0 insertions, 0 deletions