aboutsummaryrefslogtreecommitdiff
path: root/ports/faad2/0003-Initialize-pointers.patch
diff options
context:
space:
mode:
authorMichał Janiszewski <janisozaur@gmail.com>2019-11-13 22:43:02 +0100
committerMichał Janiszewski <janisozaur@gmail.com>2019-11-21 12:44:08 +0100
commitf33ec92a5bf5d00ee93d79461c96dbd1fce847ac (patch)
tree4646e917c8df6b3971ae91711ba692635f6edd0c /ports/faad2/0003-Initialize-pointers.patch
parentf07efb4a1dfebf4f9d55308785e65c74b68de269 (diff)
downloadvcpkg-f33ec92a5bf5d00ee93d79461c96dbd1fce847ac.tar.gz
vcpkg-f33ec92a5bf5d00ee93d79461c96dbd1fce847ac.zip
[faad2] Add initial version of FAAD2
FAAD2 lists its homepage as https://sourceforge.net/projects/faac/, but it links to https://github.com/knik0/faad2 as the place to send pull requests. This seems good enough for Debian[0] and Arch[1], and the SF hosts only a bit older versions, so I used the GitHub project as well. Note that though the project is named "faad2", the library name is just "faad" The embedded patches were all submitted and already merged upstream. [0] https://packages.debian.org/sid/faad [1] https://www.archlinux.org/packages/extra/x86_64/faad2/
Diffstat (limited to 'ports/faad2/0003-Initialize-pointers.patch')
-rw-r--r--ports/faad2/0003-Initialize-pointers.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/ports/faad2/0003-Initialize-pointers.patch b/ports/faad2/0003-Initialize-pointers.patch
new file mode 100644
index 000000000..29c572597
--- /dev/null
+++ b/ports/faad2/0003-Initialize-pointers.patch
@@ -0,0 +1,28 @@
+diff --git a/frontend/main.c b/frontend/main.c
+index e1d3c7d..25881c7 100644
+--- a/frontend/main.c
++++ b/frontend/main.c
+@@ -462,9 +462,9 @@ static int decodeAACfile(char *aacfile, char *sndfile, char *adts_fn, int to_std
+ 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 @@ static int decodeMP4file(char *mp4file, char *sndfile, char *adts_fn, int to_std
+
+ long sampleId, startSampleId;
+
+- audio_file *aufile;
++ audio_file *aufile = NULL;
+
+- FILE *adtsFile;
++ FILE *adtsFile = NULL;
+ unsigned char *adtsData;
+ int adtsDataSize;
+