doc/examples/filtering_audio: init packet0.data

Fixes use of uinitialized data and crash

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-12-03 00:00:04 +01:00
parent 6ca0ac5e55
commit 210a78aeb5
1 changed files with 1 additions and 0 deletions

View File

@ -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) {