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:15:12 +0000 (23:15 +0100)
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e4eebc2da9da886e1bdf87d29e9a4c5b55111036)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avf_showwaves.c

index dcbe8b8..81ee74d 100644 (file)
@@ -220,6 +220,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
         }
         if (showwaves->buf_idx == showwaves->w)
             push_frame(outlink);
+        outpicref = showwaves->outpicref;
     }
 
     avfilter_unref_buffer(insamples);