History

avfilter/vf_waveform: do not add tint if output format is gray

Paul B Mahol committed 4 years ago

Commit cc2b3201 parent da473e01 file · +2 −2Browse files

Unified · Split

libavfilter/vf_waveform.c+2−2
@@ -881,7 +881,7 @@ static av_always_inline void lowpass(WaveformContext *s, · 880 unmodified lines
881 dst_data += dst_linesize * step;881 dst_data += dst_linesize * step;
882 }882 }
883 883
884 if (s->display != OVERLAY && column && !s->rgb) {884 if (s->display != OVERLAY && column && !s->rgb && out->data[1] && out->data[2]) {
885 const int bg = s->bg_color[0];885 const int bg = s->bg_color[0];
886 const int dst_h = 256;886 const int dst_h = 256;
887 const int t0 = s->tint[0];887 const int t0 = s->tint[0];
@@ -905,7 +905,7 @@ static av_always_inline void lowpass(WaveformContext *s, · 17 unmodified lines
905 dst0 += dst_linesize;905 dst0 += dst_linesize;
906 dst1 += dst_linesize;906 dst1 += dst_linesize;
907 }907 }
908 } else if (s->display != OVERLAY && !s->rgb) {908 } else if (s->display != OVERLAY && !s->rgb && out->data[1] && out->data[2]) {
909 const int bg = s->bg_color[0];909 const int bg = s->bg_color[0];
910 const int dst_w = 256;910 const int dst_w = 256;
911 const int t0 = s->tint[0];911 const int t0 = s->tint[0];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t