]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg.patch.cvs
* ffmpeg resample.c patch is no longer necessary
[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/libavformat/rtsp.c ffmpeg/libavformat/rtsp.c
39 --- ffmpeg.old/libavformat/rtsp.c       Wed Oct 29 15:25:27 2003
40 +++ ffmpeg/libavformat/rtsp.c   Sun Nov  2 02:04:09 2003
41 @@ -20,6 +20,7 @@
42  
43  #include <unistd.h> /* for select() prototype */
44  #include <sys/time.h>
45 +#include <unistd.h>
46  #include <netinet/in.h>
47  #include <sys/socket.h>
48  #ifndef __BEOS__
49 diff -ru ffmpeg.old/libavformat/tcp.c ffmpeg/libavformat/tcp.c
50 --- ffmpeg.old/libavformat/tcp.c        Mon Sep 29 03:41:30 2003
51 +++ ffmpeg/libavformat/tcp.c    Sun Nov  2 02:04:09 2003
52 @@ -32,6 +32,7 @@
53  #include <netdb.h>
54  #include <sys/time.h>
55  #include <fcntl.h>
56 +#define socklen_t int
57  
58  typedef struct TCPContext {
59      int fd;