]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg.patch.cvs
packages.mak: upgraded freetype
[vlc] / extras / contrib / src / Patches / ffmpeg.patch.cvs
1 diff -ru ffmpeg.orig/configure ffmpeg/configure
2 --- ffmpeg.orig/configure       Tue Nov 23 19:28:23 2004
3 +++ ffmpeg/configure    Sun Nov 28 20:54:48 2004
4 @@ -210,7 +210,7 @@
5  2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
6  mmx="no"
7  ;;
8 -*20010315*) echo "BeBits gcc"
9 +*20010315*|2.95.3*) echo "BeBits gcc"
10  CFLAGS="$CFLAGS -fno-expensive-optimizations"
11  ;;
12  esac
13 @@ -370,11 +370,11 @@
14    ;;
15    --make=*) make=`echo $opt | cut -d '=' -f 2`
16    ;;
17 -  --extra-cflags=*) CFLAGS="${opt#--extra-cflags=}"
18 +  --extra-cflags=*) CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
19    ;;
20 -  --extra-ldflags=*) LDFLAGS=${opt#--extra-ldflags=}
21 +  --extra-ldflags=*) LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
22    ;;
23 -  --extra-libs=*) extralibs=${opt#--extra-libs=}
24 +  --extra-libs=*) extralibs="$extralibs ${opt#--extra-libs=}"
25    ;;
26    --cpu=*) cpu=`echo $opt | cut -d '=' -f 2`
27    ;;
28 diff -ru ffmpeg.orig/libavcodec/eval.c ffmpeg/libavcodec/eval.c
29 --- ffmpeg.orig/libavcodec/eval.c       Wed Feb 18 13:49:30 2004
30 +++ ffmpeg/libavcodec/eval.c    Sun Nov 28 20:29:15 2004
31 @@ -34,6 +34,8 @@
32  #include <string.h>
33  #include <math.h>
34  
35 +/* Meuuh power */
36 +#undef NAN
37  #ifndef NAN
38    #define NAN 0
39  #endif
40 diff -ru ffmpeg.orig/libavformat/tcp.c ffmpeg/libavformat/tcp.c
41 --- ffmpeg.orig/libavformat/tcp.c       Thu Aug 12 02:09:32 2004
42 +++ ffmpeg/libavformat/tcp.c    Sun Nov 28 20:29:15 2004
43 @@ -32,6 +32,7 @@
44  #include <netdb.h>
45  #include <sys/time.h>
46  #include <fcntl.h>
47 +#define socklen_t int
48  
49  typedef struct TCPContext {
50      int fd;
51 @@ -113,11 +114,13 @@
52                  break;
53          }
54          
55 +#ifndef __BEOS__
56          /* test error */
57          optlen = sizeof(ret);
58          getsockopt (fd, SOL_SOCKET, SO_ERROR, &ret, &optlen);
59          if (ret != 0)
60              goto fail;
61 +#endif
62      }
63      s->fd = fd;
64      return 0;