avfilter/avf_showwaves: Check max_samples
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Sep 2015 12:52:18 +0000 (14:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Sep 2015 17:27:20 +0000 (19:27 +0200)
commita212a983c7f4faf06e600f32a165592dc5b6ae76
tree4ffb3eb3dc706829c8040153e5f0a09e1d7a6b21
parentdd7b486e8e5bc12777d19c7932fa2a830db5a826
avfilter/avf_showwaves: Check max_samples

Fixes potential division by zero
Fixes: CID1292295

Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avf_showwaves.c