[FFmpeg-cvslog] avfilter/avf_showspectrum: set color range to frame

Paul B Mahol git at videolan.org
Sat Jan 9 20:22:26 CET 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jan  9 20:09:52 2016 +0100| [cbad37e5bfe5ce54ddc0c78140ccf789c195ce8d] | committer: Paul B Mahol

avfilter/avf_showspectrum: set color range to frame

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cbad37e5bfe5ce54ddc0c78140ccf789c195ce8d
---

 libavfilter/avf_showspectrum.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 5b26be8..d367bd5 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -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) ||



More information about the ffmpeg-cvslog mailing list