Unified · Split
| @@ -881,7 +881,7 @@ static av_always_inline void lowpass(WaveformContext *s, · 880 unmodified lines | ||
| 881 | 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 | 885 | const int bg = s->bg_color[0]; |
| 886 | 886 | const int dst_h = 256; |
| 887 | 887 | const int t0 = s->tint[0]; |
| @@ -905,7 +905,7 @@ static av_always_inline void lowpass(WaveformContext *s, · 17 unmodified lines | ||
| 905 | 905 | dst0 += dst_linesize; |
| 906 | 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 | 909 | const int bg = s->bg_color[0]; |
| 910 | 910 | const int dst_w = 256; |
| 911 | 911 | const int t0 = s->tint[0]; |