avcodec/utils: Better check for channels in av_get_audio_frame_duration()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Nov 2015 00:35:08 +0000 (01:35 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Nov 2015 00:38:15 +0000 (01:38 +0100)
commit4e16ad2868a1819de6680fc355a8eb20164adaea
tree8d038e12ba11b11e7c0cb03c046a556589582745
parent44a7f17d0b20e6f8d836b2957e3e357b639f19a2
avcodec/utils: Better check for channels in av_get_audio_frame_duration()

Fixes integer overflow
Fixes: 0c2625f236ced104d402b4a03c0d65c7/asan_generic_274e1ce_5990_9314e7a67c26aecf011b178ade9f217c.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c