shithub: aacdec

Download patch

ref: 3aba163b9b729a5d8c2856f425fb41e50fafc76b
parent: 043d37b60cdded2abed7c4054f954e6f9f5cada6
author: Michał Janiszewski <[email protected]>
date: Wed Nov 13 19:52:32 EST 2019

Initialize pointers that might otherwise not be

--- a/frontend/main.c
+++ b/frontend/main.c
@@ -462,9 +462,9 @@
     unsigned char channels;
     void *sample_buffer;
 
-    audio_file *aufile;
+    audio_file *aufile = NULL;
 
-    FILE *adtsFile;
+    FILE *adtsFile = NULL;
     unsigned char *adtsData;
     int adtsDataSize;
 
@@ -796,9 +796,9 @@
 
     long sampleId, startSampleId;
 
-    audio_file *aufile;
+    audio_file *aufile = NULL;
 
-    FILE *adtsFile;
+    FILE *adtsFile = NULL;
     unsigned char *adtsData;
     int adtsDataSize;