Skip to content
Snippets Groups Projects
Commit 210a78ae authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

doc/examples/filtering_audio: init packet0.data


Fixes use of uinitialized data and crash

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 6ca0ac5e
No related branches found
No related tags found
No related merge requests found
...@@ -220,6 +220,7 @@ int main(int argc, char **argv) ...@@ -220,6 +220,7 @@ int main(int argc, char **argv)
goto end; goto end;
/* read all packets */ /* read all packets */
packet0.data = NULL;
packet.data = NULL; packet.data = NULL;
while (1) { while (1) {
if (!packet0.data) { if (!packet0.data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment