mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avfilter/vf_waveform: do not add tint if output format is gray
This commit is contained in:
parent
da473e0984
commit
cc2b3201e7
1 changed files with 2 additions and 2 deletions
|
|
@ -881,7 +881,7 @@ static av_always_inline void lowpass(WaveformContext *s,
|
||||||
dst_data += dst_linesize * step;
|
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 bg = s->bg_color[0];
|
||||||
const int dst_h = 256;
|
const int dst_h = 256;
|
||||||
const int t0 = s->tint[0];
|
const int t0 = s->tint[0];
|
||||||
|
|
@ -905,7 +905,7 @@ static av_always_inline void lowpass(WaveformContext *s,
|
||||||
dst0 += dst_linesize;
|
dst0 += dst_linesize;
|
||||||
dst1 += 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 bg = s->bg_color[0];
|
||||||
const int dst_w = 256;
|
const int dst_w = 256;
|
||||||
const int t0 = s->tint[0];
|
const int t0 = s->tint[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue