]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avf_showwaves.c
avfilter/vf_frei0r: also set AVFilterLink.frame_rate
[ffmpeg] / libavfilter / avf_showwaves.c
index 97d0dbd232b1e84cf22139797064596c20abe004..cffa883003a155a771eec295dd47065fe3f38a03 100644 (file)
@@ -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++)