avf_showwaves: fix null pointer dereference
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Jan 2013 22:00:20 +0000 (23:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Jan 2013 22:00:20 +0000 (23:00 +0100)
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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);