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
881881 dst_data += dst_linesize * step;
882882 }
883883
884− if (s->display != OVERLAY && column && !s->rgb) {
884+ if (s->display != OVERLAY && column && !s->rgb && out->data[1] && out->data[2]) {
885885 const int bg = s->bg_color[0];
886886 const int dst_h = 256;
887887 const int t0 = s->tint[0];
@@ -905,7 +905,7 @@ static av_always_inline void lowpass(WaveformContext *s, · 17 unmodified lines
905905 dst0 += dst_linesize;
906906 dst1 += dst_linesize;
907907 }
908− } else if (s->display != OVERLAY && !s->rgb) {
908+ } else if (s->display != OVERLAY && !s->rgb && out->data[1] && out->data[2]) {
909909 const int bg = s->bg_color[0];
910910 const int dst_w = 256;
911911 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