doc/examples/filtering_audio: init packet0.data

Fixes use of uinitialized data and crash

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/48/merge
Michael Niedermayer 11 years ago
parent 6ca0ac5e55
commit 210a78aeb5
  1. 1
      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) {

Loading…
Cancel
Save