ffmpeg | branch: master | Clément Bœsch <u...@pkh.me> | Wed Dec 24 15:11:44 2014 +0100| [ecafde6606a51c285ed7ca4d27697392b493919e] | committer: Clément Bœsch
avfilter/showwaves: fix height range for cline mode > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ecafde6606a51c285ed7ca4d27697392b493919e --- libavfilter/avf_showwaves.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index 97d0dbd..cffa883 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -222,7 +222,7 @@ static void draw_sample_cline(uint8_t *buf, int height, int linesize, int16_t sample, int16_t *prev_y, int intensity) { int k; - const int h = av_rescale(abs(sample), height, UINT16_MAX); + const int h = av_rescale(abs(sample), height, INT16_MAX); const int start = (height - h) / 2; const int end = start + h; for (k = start; k < end; k++) _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog