[FFmpeg-cvslog] avfilter/vf_waveform: cc2b3201e7 missed same for >8 bits

Paul B Mahol git at videolan.org
Mon May 1 15:56:32 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon May  1 14:52:52 2023 +0200| [eaf15b5882995e5c88843539503fe4db14a2d60c] | committer: Paul B Mahol

avfilter/vf_waveform: cc2b3201e7 missed same for >8 bits

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eaf15b5882995e5c88843539503fe4db14a2d60c
---

 libavfilter/vf_waveform.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c
index 37eb0679d0..8872c43aeb 100644
--- a/libavfilter/vf_waveform.c
+++ b/libavfilter/vf_waveform.c
@@ -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];



More information about the ffmpeg-cvslog mailing list