avfilter/avf_showspectrum: set color range to frame
authorPaul B Mahol <onemda@gmail.com>
Sat, 9 Jan 2016 19:09:52 +0000 (20:09 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sat, 9 Jan 2016 19:09:52 +0000 (20:09 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/avf_showspectrum.c

index 5b26be8..d367bd5 100644 (file)
@@ -370,6 +370,7 @@ static int config_output(AVFilterLink *outlink)
             memset(outpicref->data[1] + i * outpicref->linesize[1], 128, outlink->w);
             memset(outpicref->data[2] + i * outpicref->linesize[2], 128, outlink->w);
         }
+        av_frame_set_color_range(outpicref, AVCOL_RANGE_JPEG);
     }
 
     if ((s->orientation == VERTICAL   && s->xpos >= s->w) ||