OSDN Git Service

doc/examples/filtering_audio: init packet0.data
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Dec 2013 23:00:04 +0000 (00:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Dec 2013 23:01:07 +0000 (00:01 +0100)
Fixes use of uinitialized data and crash

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/examples/filtering_audio.c

index 5802d90..1d66ca3 100644 (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) {