From 210a78aeb5096f746b8b788a47fd11e972b6de6a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 3 Dec 2013 00:00:04 +0100 Subject: [PATCH] doc/examples/filtering_audio: init packet0.data Fixes use of uinitialized data and crash Signed-off-by: Michael Niedermayer --- doc/examples/filtering_audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c index 5802d90264..1d66ca33e3 100644 --- a/doc/examples/filtering_audio.c +++ b/doc/examples/filtering_audio.c @@ -220,6 +220,7 @@ int main(int argc, char **argv) goto end; /* read all packets */ + packet0.data = NULL; packet.data = NULL; while (1) { if (!packet0.data) {