]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg.patch.cvs
* Updated contrib build system
[vlc] / extras / contrib / src / Patches / ffmpeg.patch.cvs
1 diff -ru ffmpeg.old/libavcodec/dsputil.h ffmpeg/libavcodec/dsputil.h
2 --- ffmpeg.old/libavcodec/dsputil.h     Sat Oct 25 02:32:54 2003
3 +++ ffmpeg/libavcodec/dsputil.h Sun Nov  2 02:04:09 2003
4 @@ -487,6 +487,8 @@
5            +name8(s, dst+8+8*stride, src+8+8*stride, stride);\
6  }
7  
8 +/* Meuuh power */
9 +#undef HAVE_LRINTF
10  #ifndef HAVE_LRINTF
11  /* XXX: add ISOC specific test to avoid specific BSD testing. */
12  /* better than nothing implementation. */
13 diff -ru ffmpeg.old/libavcodec/eval.c ffmpeg/libavcodec/eval.c
14 --- ffmpeg.old/libavcodec/eval.c        Thu Mar  6 12:32:01 2003
15 +++ ffmpeg/libavcodec/eval.c    Sun Nov  2 02:04:09 2003
16 @@ -34,6 +34,8 @@
17  #include <string.h>
18  #include <math.h>
19  
20 +/* Meuuh power */
21 +#undef NAN
22  #ifndef NAN
23    #define NAN 0
24  #endif
25 diff -ru ffmpeg.old/libavcodec/libpostproc/Makefile ffmpeg/libavcodec/libpostproc/Makefile
26 --- ffmpeg.old/libavcodec/libpostproc/Makefile  Sun May 11 13:26:35 2003
27 +++ ffmpeg/libavcodec/libpostproc/Makefile      Sun Nov  2 19:20:31 2003
28 @@ -55,6 +55,9 @@
29         ldconfig || true
30         mkdir -p $(prefix)/include/postproc
31         install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
32 +else
33 +       mkdir -p $(prefix)/include/postproc
34 +       install -m 644 postprocess.h $(prefix)/include/postproc/postprocess.h
35  endif
36  
37  
38 diff -ru ffmpeg.old/libavcodec/resample.c ffmpeg/libavcodec/resample.c
39 --- ffmpeg.old/libavcodec/resample.c    Mon Sep  8 23:05:43 2003
40 +++ ffmpeg/libavcodec/resample.c        Sun Nov  2 02:04:09 2003
41 @@ -49,7 +49,7 @@
42  static void init_mono_resample(ReSampleChannelContext *s, float ratio)
43  {
44      ratio = 1.0 / ratio;
45 -    s->iratio = (int)floorf(ratio);
46 +    s->iratio = (int)floor(ratio);
47      if (s->iratio == 0)
48          s->iratio = 1;
49      s->incr = (int)((ratio / s->iratio) * FRAC);
50 diff -ru ffmpeg.old/libavformat/rtsp.c ffmpeg/libavformat/rtsp.c
51 --- ffmpeg.old/libavformat/rtsp.c       Wed Oct 29 15:25:27 2003
52 +++ ffmpeg/libavformat/rtsp.c   Sun Nov  2 02:04:09 2003
53 @@ -20,6 +20,7 @@
54  
55  #include <unistd.h> /* for select() prototype */
56  #include <sys/time.h>
57 +#include <unistd.h>
58  #include <netinet/in.h>
59  #include <sys/socket.h>
60  #ifndef __BEOS__
61 diff -ru ffmpeg.old/libavformat/tcp.c ffmpeg/libavformat/tcp.c
62 --- ffmpeg.old/libavformat/tcp.c        Mon Sep 29 03:41:30 2003
63 +++ ffmpeg/libavformat/tcp.c    Sun Nov  2 02:04:09 2003
64 @@ -32,6 +32,7 @@
65  #include <netdb.h>
66  #include <sys/time.h>
67  #include <fcntl.h>
68 +#define socklen_t int
69  
70  typedef struct TCPContext {
71      int fd;