[SCM] faad2 packaging branch, master, updated. debian/2.7-4-5-ga421d73

fabian-guest at users.alioth.debian.org fabian-guest at users.alioth.debian.org
Mon Aug 16 14:36:54 UTC 2010


The following commit has been merged in the master branch:
commit a421d733a6b9f24c72326e08bddccdbd5bc0ddf3
Author: Fabian Greffrath <fabian at greffrath.com>
Date:   Mon Aug 16 16:39:32 2010 +0200

    Extend file name buffers for longer path names.

diff --git a/debian/patches/path_max.patch b/debian/patches/path_max.patch
new file mode 100644
index 0000000..c606354
--- /dev/null
+++ b/debian/patches/path_max.patch
@@ -0,0 +1,27 @@
+Description: Extend file name buffers for longer path names.
+Author: Fabian Greffrath <fabian+debian at greffrath.com>
+Forwarded: menno at audiocoding.com
+
+--- faad2.orig/frontend/main.c
++++ faad2/frontend/main.c
+@@ -42,6 +42,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <getopt.h>
++#include <limits.h>
+ 
+ #include <neaacdec.h>
+ #include <mp4ff.h>
+@@ -1107,9 +1108,9 @@ int main(int argc, char *argv[])
+     int mp4file = 0;
+     int noGapless = 0;
+     char *fnp;
+-    char aacFileName[255];
+-    char audioFileName[255];
+-    char adtsFileName[255];
++    char aacFileName[PATH_MAX + 1];
++    char audioFileName[PATH_MAX + 1];
++    char adtsFileName[PATH_MAX + 1];
+     unsigned char header[8];
+     float length = 0;
+     FILE *hMP4File;
diff --git a/debian/patches/series b/debian/patches/series
index c6a562f..1ba3b4f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 manpage.patch
 bpa-stdin.patch
+path_max.patch

-- 
faad2 packaging



More information about the pkg-multimedia-commits mailing list