aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-03 00:00:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-03 00:01:07 +0100
commit210a78aeb5096f746b8b788a47fd11e972b6de6a (patch)
tree4dd8f03b9adadcca5ae02b920b6e936d843eb6c3 /doc/examples
parent6ca0ac5e55714c1e5ad4292a47c794ffb8586af3 (diff)
downloadffmpeg-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>
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/filtering_audio.c1
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) {