From f659b70eb0935e8f80ea8a9457e1bb360150df58 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 7 Mar 2016 13:27:32 +0100 Subject: [PATCH] avfilter/vf_waveform: draw graticule for color filter too Signed-off-by: Paul B Mahol --- libavfilter/vf_waveform.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c index 9d02428bf5..3e14d509ee 100644 --- a/libavfilter/vf_waveform.c +++ b/libavfilter/vf_waveform.c @@ -1518,6 +1518,10 @@ static int config_input(AVFilterLink *inlink) s->waveform = achroma; break; case COLOR: s->size = 256; + if (s->graticule && s->mode == 1) + s->graticulef = s->bits > 8 ? graticule16_green_column : graticule_green_column; + else if (s->graticule && s->mode == 0) + s->graticulef = s->bits > 8 ? graticule16_green_row : graticule_green_row; s->waveform = s->bits > 8 ? color16 : color; break; }