Browse code

avf_showwaves: fix null pointer dereference

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>

Michael Niedermayer authored on 2013/01/22 07:00:20
Showing 1 changed files
... ...
@@ -220,6 +220,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
220 220
         }
221 221
         if (showwaves->buf_idx == showwaves->w)
222 222
             push_frame(outlink);
223
+        outpicref = showwaves->outpicref;
223 224
     }
224 225
 
225 226
     avfilter_unref_buffer(insamples);