FreeBSD Bugzilla – Attachment 170938 Details for
Bug 209960
audio/faad: Add license
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
faad2-2.7_5,1.patch
faad.patch (text/plain), 5.03 KB, created by
takefu
on 2016-06-02 07:56:45 UTC
(
hide
)
Description:
faad2-2.7_5,1.patch
Filename:
MIME Type:
Creator:
takefu
Created:
2016-06-02 07:56:45 UTC
Size:
5.03 KB
patch
obsolete
>diff -dpruN /usr/ports/audio/faad/Makefile ./Makefile >--- /usr/ports/audio/faad/Makefile 2015-03-25 21:37:39.000000000 +0000 >+++ ./Makefile 2016-06-02 07:54:46.000000000 +0000 >@@ -11,7 +11,12 @@ MASTER_SITES= SF/faac/${PORTNAME}-src/${ > MAINTAINER= multimedia@FreeBSD.org > COMMENT= MPEG-2 and MPEG-4 AAC audio decoder > >-USES= autoreconf dos2unix gmake libtool tar:bzip2 >+LICENSE= GPLv2 >+LICENSE_FILE= ${WRKSRC}/COPYING >+ >+RESTRICTED= Commercial non-GPL licensing of this software is possible >+ >+USES= autoreconf gmake libtool tar:bzip2 > GNU_CONFIGURE= yes > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -lpthread -L${LOCALBASE}/lib >diff -dpruN /usr/ports/audio/faad/distinfo ./distinfo >--- /usr/ports/audio/faad/distinfo 2014-01-22 15:30:13.000000000 +0000 >+++ ./distinfo 2016-06-02 07:55:07.000000000 +0000 >@@ -1,2 +1,3 @@ >+TIMESTAMP = 1464854107 > SHA256 (faad2-2.7.tar.bz2) = 14561b5d6bc457e825bfd3921ae50a6648f377a9396eaf16d4b057b39a3f63b5 > SIZE (faad2-2.7.tar.bz2) = 901043 >diff -dpruN /usr/ports/audio/faad/files/patch-frontend_main.c ./files/patch-frontend_main.c >--- /usr/ports/audio/faad/files/patch-frontend_main.c 2015-05-22 13:34:20.000000000 +0000 >+++ ./files/patch-frontend_main.c 2015-09-01 06:53:55.000000000 +0000 >@@ -1,6 +1,6 @@ >---- frontend/main.c.orig >+--- frontend/main.c.orig 2008-09-22 17:55:09 UTC > +++ frontend/main.c >-@@ -137,6 +137,31 @@ >+@@ -137,6 +137,31 @@ static void advance_buffer(aac_buffer *b > b->bytes_into_buffer = 0; > } > >@@ -32,7 +32,7 @@ > static int adts_sample_rates[] = {96000,88200,64000,48000,44100,32000,24000,22050,16000,12000,11025,8000,7350,0,0,0}; > > static int adts_parse(aac_buffer *b, int *bitrate, float *length) >-@@ -424,6 +449,8 @@ >+@@ -424,6 +449,8 @@ static int decodeAACfile(char *aacfile, > float length = 0; > > int first_time = 1; >@@ -41,7 +41,7 @@ > > aac_buffer b; > >-@@ -439,17 +466,39 @@ >+@@ -439,17 +466,39 @@ static int decodeAACfile(char *aacfile, > } > } > >@@ -89,7 +89,7 @@ > > if (!(b.buffer = (unsigned char*)malloc(FAAD_MIN_STREAMSIZE*MAX_CHANNELS))) > { >-@@ -494,19 +543,39 @@ >+@@ -494,19 +543,39 @@ static int decodeAACfile(char *aacfile, > > /* get AAC infos for printing */ > header_type = 0; >@@ -139,7 +139,7 @@ > > header_type = 1; > } else if (memcmp(b.buffer, "ADIF", 4) == 0) { >-@@ -538,7 +607,8 @@ >+@@ -538,7 +607,8 @@ static int decodeAACfile(char *aacfile, > if (b.buffer) > free(b.buffer); > NeAACDecClose(hDecoder); >@@ -149,7 +149,7 @@ > return 1; > } > advance_buffer(&b, bread); >-@@ -564,7 +634,8 @@ >+@@ -564,7 +634,8 @@ static int decodeAACfile(char *aacfile, > if (infoOnly) > { > NeAACDecClose(hDecoder); >@@ -159,7 +159,7 @@ > if (b.buffer) > free(b.buffer); > return 0; >-@@ -621,7 +692,8 @@ >+@@ -621,7 +692,8 @@ static int decodeAACfile(char *aacfile, > if (b.buffer) > free(b.buffer); > NeAACDecClose(hDecoder); >@@ -169,7 +169,7 @@ > return 0; > } > } else { >-@@ -662,7 +734,8 @@ >+@@ -662,7 +734,8 @@ static int decodeAACfile(char *aacfile, > fclose(adtsFile); > } > >@@ -179,7 +179,7 @@ > > if (!first_time && !adts_out) > close_audio_file(aufile); >-@@ -750,6 +823,11 @@ >+@@ -750,6 +823,11 @@ static int decodeMP4file(char *mp4file, > /* initialise the callback structure */ > mp4ff_callback_t *mp4cb = malloc(sizeof(mp4ff_callback_t)); > >@@ -191,7 +191,7 @@ > mp4File = fopen(mp4file, "rb"); > mp4cb->read = read_callback; > mp4cb->seek = seek_callback; >-@@ -1016,6 +1094,7 @@ >+@@ -1016,6 +1094,7 @@ int main(int argc, char *argv[]) > int result; > int infoOnly = 0; > int writeToStdio = 0; >@@ -199,7 +199,7 @@ > int object_type = LC; > int def_srate = 0; > int downMatrix = 0; >-@@ -1229,15 +1308,30 @@ >+@@ -1229,15 +1308,30 @@ int main(int argc, char *argv[]) > } > > /* check for mp4 file */ >@@ -237,7 +237,7 @@ > if (header[4] == 'f' && header[5] == 't' && header[6] == 'y' && header[7] == 'p') > mp4file = 1; > >-@@ -1246,6 +1340,18 @@ >+@@ -1246,6 +1340,18 @@ int main(int argc, char *argv[]) > result = decodeMP4file(aacFileName, audioFileName, adtsFileName, writeToStdio, > outputFormat, format, downMatrix, noGapless, infoOnly, adts_out, &length); > } else { >diff -dpruN /usr/ports/audio/faad/files/patch-libfaad_cfft.c ./files/patch-libfaad_cfft.c >--- /usr/ports/audio/faad/files/patch-libfaad_cfft.c 2014-01-22 17:40:44.000000000 +0000 >+++ ./files/patch-libfaad_cfft.c 2015-09-01 06:53:55.000000000 +0000 >@@ -1,5 +1,5 @@ >---- libfaad/cfft.c.orig 2009-03-24 23:36:45.000000000 -0400 >-+++ libfaad/cfft.c 2009-03-24 23:37:25.000000000 -0400 >+--- libfaad/cfft.c.orig 2007-11-01 12:33:29 UTC >++++ libfaad/cfft.c > @@ -60,8 +60,8 @@ static void passf4neg(const uint16_t ido > static void passf5(const uint16_t ido, const uint16_t l1, const complex_t *cc, complex_t *ch, > const complex_t *wa1, const complex_t *wa2, const complex_t *wa3,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 209960
: 170938