]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/tremor.patch
* Patch ffmpeg configure to not use twice the cross prefix.
[vlc] / extras / contrib / src / Patches / tremor.patch
1 Index: os.h
2 ===================================================================
3 --- os.h        (revision 10420)
4 +++ os.h        (working copy)
5 @@ -20,6 +20,14 @@
6  #include <math.h>
7  #include "os_types.h"
8  
9 +#ifdef _LOW_ACCURACY_
10 +#  define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9))
11 +#  define LOOKUP_T const unsigned char
12 +#else
13 +#  define X(n) (n)
14 +#  define LOOKUP_T const ogg_int32_t
15 +#endif
16 +
17  #ifndef _V_IFDEFJAIL_H_
18  #  define _V_IFDEFJAIL_H_
19  
20 Index: synthesis.c
21 ===================================================================
22 --- synthesis.c (revision 10420)
23 +++ synthesis.c (working copy)
24 @@ -33,7 +33,7 @@
25   
26    /* first things first.  Make sure decode is ready */
27    _vorbis_block_ripcord(vb);
28 -  oggpack_readinit(opb,op->packet);
29 +  oggpack_readinit(opb,op->packet,op->bytes);
30  
31    /* Check the packet type */
32    if(oggpack_read(opb,1)!=0){
33 @@ -86,7 +86,7 @@
34    oggpack_buffer       opb;
35    int                  mode;
36   
37 -  oggpack_readinit(&opb,op->packet);
38 +  oggpack_readinit(&opb,op->packet,op->bytes);
39  
40    /* Check the packet type */
41    if(oggpack_read(&opb,1)!=0){
42 Index: info.c
43 ===================================================================
44 --- info.c      (revision 10420)
45 +++ info.c      (working copy)
46 @@ -299,7 +299,7 @@
47    oggpack_buffer opb;
48    
49    if(op){
50 -    oggpack_readinit(&opb,op->packet);
51 +    oggpack_readinit(&opb,op->packet,op->bytes);
52  
53      /* Which of the three types of header is this? */
54      /* Also verify header-ness, vorbis */
55 Index: ivorbiscodec.h
56 ===================================================================
57 --- ivorbiscodec.h      (revision 10420)
58 +++ ivorbiscodec.h      (working copy)
59 @@ -23,7 +23,7 @@
60  {
61  #endif /* __cplusplus */
62  
63 -#include "ogg.h"
64 +#include <ogg/ogg.h>
65  
66  typedef struct vorbis_info{
67    int version;
68 Index: Makefile.am
69 ===================================================================
70 --- Makefile.am (revision 10420)
71 +++ Makefile.am (working copy)
72 @@ -8,11 +8,11 @@
73                          synthesis.c info.c \
74                          floor1.c floor0.c vorbisfile.c \
75                          res012.c mapping0.c registry.c codebook.c \
76 -                       sharedbook.c framing.c bitwise.c \
77 +                       sharedbook.c \
78                          codebook.h misc.h mdct_lookup.h\
79                          os.h mdct.h ivorbisfile.h lsp_lookup.h\
80                          registry.h window.h window_lookup.h\
81 -                        codec_internal.h backends.h ogg.h \
82 +                        codec_internal.h backends.h \
83                         asm_arm.h ivorbiscodec.h
84  libvorbisidec_la_LDFLAGS = -version-info @V_LIB_CURRENT@:@V_LIB_REVISION@:@V_LIB_AGE@
85  
86 @@ -25,7 +25,7 @@
87  
88  includedir = $(prefix)/include/tremor
89  
90 -include_HEADERS = ivorbiscodec.h ivorbisfile.h ogg.h os_types.h config_types.h
91 +include_HEADERS = ivorbiscodec.h ivorbisfile.h os_types.h config_types.h
92  
93  example:
94         -ln -fs . vorbis
95 Index: configure.in
96 ===================================================================
97 --- orig/configure.in   2006-02-01 12:56:54.000000000 +0100
98 +++ configure.in        2006-02-01 13:02:36.000000000 +0100
99 @@ -54,8 +54,7 @@ else
100  
101          case $host in 
102          arm-*-*)
103 -                DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char 
104 --D_ARM_ASSEM_"
105 +                DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -D_ARM_ASSEM_"
106                  CFLAGS="-O2 -D_ARM_ASSEM_ -fsigned-char"
107                  PROFILE="-W -pg -g -O2 -D_ARM_ASSEM_ -fsigned-char -fno-inline-functions";;
108