diff options
author | Clément Bœsch <u@pkh.me> | 2014-12-24 15:11:44 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2014-12-24 15:13:31 +0100 |
commit | ecafde6606a51c285ed7ca4d27697392b493919e (patch) | |
tree | d7ec65658c68588b1c6a34d6dbee78edb5715771 | |
parent | f6950a077cd4a274f3c3432fdcbea6692c14a4aa (diff) | |
download | ffmpeg-ecafde6606a51c285ed7ca4d27697392b493919e.tar.gz |
avfilter/showwaves: fix height range for cline mode
-rw-r--r-- | libavfilter/avf_showwaves.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index 97d0dbd232..cffa883003 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++) |