avf_showwaves: fix null pointer dereference
[ffmpeg.git] / libavfilter / avf_showwaves.c
index 30a8e1e..3e5f39f 100644 (file)
@@ -220,6 +220,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples)
         }
         if (showwaves->buf_idx == showwaves->w)
             push_frame(outlink);
+        outpicref = showwaves->outpicref;
     }
 
     avfilter_unref_buffer(insamples);