Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-02-18 01:02:56 +0300
committerPaul B Mahol <onemda@gmail.com>2022-02-18 01:05:13 +0300
commitcc2b3201e712211476ca072fe481efa423fad9b9 (patch)
treecc2768307f5238f9033d70d840af10b980c039ca /libavfilter/vf_waveform.c
parentda473e0984e0ee3d99c4677c74b2acf62e91caaa (diff)
avfilter/vf_waveform: do not add tint if output format is gray
Diffstat (limited to 'libavfilter/vf_waveform.c')
-rw-r--r--libavfilter/vf_waveform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c
index 33a3ac08d3..2904e97c29 100644
--- a/libavfilter/vf_waveform.c
+++ b/libavfilter/vf_waveform.c
@@ -881,7 +881,7 @@ static av_always_inline void lowpass(WaveformContext *s,
dst_data += dst_linesize * step;
}
- if (s->display != OVERLAY && column && !s->rgb) {
+ if (s->display != OVERLAY && column && !s->rgb && out->data[1] && out->data[2]) {
const int bg = s->bg_color[0];
const int dst_h = 256;
const int t0 = s->tint[0];
@@ -905,7 +905,7 @@ static av_always_inline void lowpass(WaveformContext *s,
dst0 += dst_linesize;
dst1 += dst_linesize;
}
- } else if (s->display != OVERLAY && !s->rgb) {
+ } else if (s->display != OVERLAY && !s->rgb && out->data[1] && out->data[2]) {
const int bg = s->bg_color[0];
const int dst_w = 256;
const int t0 = s->tint[0];