]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg.patch
8abe10c83f0a5b2a379b169ac25f3bee02fa1066
[vlc] / extras / contrib / src / Patches / ffmpeg.patch
1 diff -ru ffmpeg.old/configure ffmpeg/configure
2 --- ffmpeg.old/configure        Sun Sep 28 17:26:39 2003
3 +++ ffmpeg/configure    Tue Nov 11 17:17:59 2003
4 @@ -172,18 +172,18 @@
5  extralibs=""
6  darwin="yes"
7  strip="strip -x"
8 -LDFLAGS="-d"
9 +LDFLAGS="$LDFLAGS -d"
10  FFSLDFLAGS=-Wl,-bind_at_load
11  gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)"
12  case "$gcc_version" in
13  *2.95*) 
14 -CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer"
15 +CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer"
16  ;;
17  *3.3*) 
18 -CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer -mdynamic-no-pic -force_cpusubtype_ALL"
19 +CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer -mdynamic-no-pic -force_cpusubtype_ALL"
20  ;;
21  *) 
22 -CFLAGS="-no-cpp-precomp -pipe -fomit-frame-pointer -mdynamic-no-pic"
23 +CFLAGS="$CFLAGS -no-cpp-precomp -pipe -fomit-frame-pointer -mdynamic-no-pic"
24  ;;
25  esac
26  ;;
27 diff -ru ffmpeg.old/libavcodec/dsputil.h ffmpeg/libavcodec/dsputil.h
28 --- ffmpeg.old/libavcodec/dsputil.h     Sun Sep 28 17:26:39 2003
29 +++ ffmpeg/libavcodec/dsputil.h Tue Nov 11 17:16:28 2003
30 @@ -477,6 +477,8 @@
31            +name8(s, dst+8+8*stride, src+8+8*stride, stride);\
32  }
33  
34 +/* Meuuh power */
35 +#undef HAVE_LRINTF
36  #ifndef HAVE_LRINTF
37  /* XXX: add ISOC specific test to avoid specific BSD testing. */
38  /* better than nothing implementation. */
39 diff -ru ffmpeg.old/libavcodec/eval.c ffmpeg/libavcodec/eval.c
40 --- ffmpeg.old/libavcodec/eval.c        Sun Sep 28 17:26:39 2003
41 +++ ffmpeg/libavcodec/eval.c    Tue Nov 11 17:16:28 2003
42 @@ -34,6 +34,8 @@
43  #include <string.h>
44  #include <math.h>
45  
46 +/* Meuuh power */
47 +#undef NAN
48  #ifndef NAN
49    #define NAN 0
50  #endif
51 diff -ru ffmpeg.old/libavcodec/libpostproc/Makefile ffmpeg/libavcodec/libpostproc/Makefile
52 --- ffmpeg.old/libavcodec/libpostproc/Makefile  Sun Sep 28 17:26:40 2003
53 +++ ffmpeg/libavcodec/libpostproc/Makefile      Tue Nov 11 17:16:28 2003
54 @@ -55,6 +55,9 @@
55         ldconfig || true
56         mkdir -p $(prefix)/include/postproc
57         install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
58 +else
59 +       mkdir -p $(prefix)/include/libpostproc
60 +       install -m 644 postprocess.h $(prefix)/include/libpostproc/postprocess.h
61  endif
62  
63  
64 diff -ru ffmpeg.old/libavcodec/resample.c ffmpeg/libavcodec/resample.c
65 --- ffmpeg.old/libavcodec/resample.c    Sun Sep 28 17:26:39 2003
66 +++ ffmpeg/libavcodec/resample.c        Tue Nov 11 17:16:28 2003
67 @@ -49,7 +49,7 @@
68  static void init_mono_resample(ReSampleChannelContext *s, float ratio)
69  {
70      ratio = 1.0 / ratio;
71 -    s->iratio = (int)floorf(ratio);
72 +    s->iratio = (int)floor(ratio);
73      if (s->iratio == 0)
74          s->iratio = 1;
75      s->incr = (int)((ratio / s->iratio) * FRAC);
76 diff -ru ffmpeg.old/libavformat/rtsp.c ffmpeg/libavformat/rtsp.c
77 --- ffmpeg.old/libavformat/rtsp.c       Sun Sep 28 17:26:40 2003
78 +++ ffmpeg/libavformat/rtsp.c   Tue Nov 11 17:16:28 2003
79 @@ -20,6 +20,7 @@
80  
81  #include <unistd.h> /* for select() prototype */
82  #include <sys/time.h>
83 +#include <unistd.h>
84  #include <netinet/in.h>
85  #include <sys/socket.h>
86  #ifndef __BEOS__
87 diff -ru ffmpeg.old/libavformat/tcp.c ffmpeg/libavformat/tcp.c
88 --- ffmpeg.old/libavformat/tcp.c        Sun Sep 28 17:26:40 2003
89 +++ ffmpeg/libavformat/tcp.c    Tue Nov 11 17:16:28 2003
90 @@ -32,6 +32,7 @@
91  #include <netdb.h>
92  #include <sys/time.h>
93  #include <fcntl.h>
94 +#define socklen_t int
95  
96  typedef struct TCPContext {
97      int fd;