aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_waveform.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-03-07 13:27:32 +0100
committerPaul B Mahol <onemda@gmail.com>2016-03-07 13:27:41 +0100
commitf659b70eb0935e8f80ea8a9457e1bb360150df58 (patch)
treef233641db3bca9d4e75edd28aa24a40a19f410e2 /libavfilter/vf_waveform.c
parent920f592b81c750d30dd87c752b110bddb430c4bc (diff)
downloadffmpeg-f659b70eb0935e8f80ea8a9457e1bb360150df58.tar.gz
avfilter/vf_waveform: draw graticule for color filter too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_waveform.c')
-rw-r--r--libavfilter/vf_waveform.c4
1 files changed, 4 insertions, 0 deletions
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;
}