Commit eaf15b58 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_waveform: cc2b3201 missed same for >8 bits

parent e7c690a0
......@@ -745,7 +745,7 @@ static av_always_inline void lowpass16(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 mult = s->max / 256;
const int bg = s->bg_color[0] * mult;
const int t0 = s->tint[0];
......@@ -769,7 +769,7 @@ static av_always_inline void lowpass16(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 mult = s->max / 256;
const int bg = s->bg_color[0] * mult;
const int t0 = s->tint[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment