avfilter/avf_showcwt: avoid undefined float to int conversion of nb_consumed_samples
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 Jun 2026 18:23:11 +0000 (20:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Jun 2026 21:57:23 +0000 (23:57 +0200)
commit8db78165b3f6a138d7d01473b72e3c4b874ef9da
tree53a90d7ebf0c5521d21c246a3cc0fa36d456fbb6
parent5541caa9d6b47f3a6831c224939c58700e8c8a48
avfilter/avf_showcwt: avoid undefined float to int conversion of nb_consumed_samples

Reproduced with:
ffmpeg -f lavfi -i "sine=frequency=440" -filter_complex \
 "[0:a]showcwt=size=32x32:deviation=0[v]" -map "[v]" -f null -

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b276ac07e85cb2bf0d4c1534c7fc067a24ebb6a1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avf_showcwt.c