avfilter/avf_ahistogram: raise minimum acmax to 1
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 20 May 2016 15:55:11 +0000 (17:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 21 May 2016 16:47:25 +0000 (18:47 +0200)
commite7c5dbb4d117591f4ec19a57828155d2009f9bd6
treea4b13236a93a10116ef6a56c7ca559466656f96b
parent8e069eb525d46b8f89089e37fc7ac81b2d9b1092
avfilter/avf_ahistogram: raise minimum acmax to 1

If acmax can be 0 then it could result in a division by 0
Fixes CID1351345

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avf_ahistogram.c