diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-03 00:00:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-03 00:01:07 +0100 |
commit | 210a78aeb5096f746b8b788a47fd11e972b6de6a (patch) | |
tree | 4dd8f03b9adadcca5ae02b920b6e936d843eb6c3 | |
parent | 6ca0ac5e55714c1e5ad4292a47c794ffb8586af3 (diff) | |
download | ffmpeg-210a78aeb5096f746b8b788a47fd11e972b6de6a.tar.gz |
doc/examples/filtering_audio: init packet0.data
Fixes use of uinitialized data and crash
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | doc/examples/filtering_audio.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |