]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg.patch.cvs
ALL: BeOS fixes
[vlc] / extras / contrib / src / Patches / ffmpeg.patch.cvs
1 diff -ru ffmpeg-original/configure ffmpeg/configure
2 --- ffmpeg-original/configure   Fri Aug 13 02:59:48 2004
3 +++ ffmpeg/configure    Mon Aug 16 12:54:10 2004
4 @@ -351,11 +351,11 @@
5    ;;
6    --make=*) make=`echo $opt | cut -d '=' -f 2`
7    ;;
8 -  --extra-cflags=*) CFLAGS="${opt#--extra-cflags=}"
9 +  --extra-cflags=*) CFLAGS="$CFLAGS ${opt#--extra-cflags=}"
10    ;;
11 -  --extra-ldflags=*) LDFLAGS=${opt#--extra-ldflags=}
12 +  --extra-ldflags=*) LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}"
13    ;;
14 -  --extra-libs=*) extralibs=${opt#--extra-libs=}
15 +  --extra-libs=*) extralibs="$extralibs ${opt#--extra-libs=}"
16    ;;
17    --cpu=*) cpu=`echo $opt | cut -d '=' -f 2`
18    ;;
19 diff -ru ffmpeg-original/libavcodec/eval.c ffmpeg/libavcodec/eval.c
20 --- ffmpeg-original/libavcodec/eval.c   Wed Feb 18 13:49:30 2004
21 +++ ffmpeg/libavcodec/eval.c    Mon Aug 16 12:46:02 2004
22 @@ -34,6 +34,8 @@
23  #include <string.h>
24  #include <math.h>
25  
26 +/* Meuuh power */
27 +#undef NAN
28  #ifndef NAN
29    #define NAN 0
30  #endif
31 diff -ru ffmpeg-original/libavformat/tcp.c ffmpeg/libavformat/tcp.c
32 --- ffmpeg-original/libavformat/tcp.c   Thu Aug 12 02:09:32 2004
33 +++ ffmpeg/libavformat/tcp.c    Mon Aug 16 12:46:02 2004
34 @@ -32,6 +32,7 @@
35  #include <netdb.h>
36  #include <sys/time.h>
37  #include <fcntl.h>
38 +#define socklen_t int
39  
40  typedef struct TCPContext {
41      int fd;
42 @@ -113,11 +114,13 @@
43                  break;
44          }
45          
46 +#ifndef __BEOS__
47          /* test error */
48          optlen = sizeof(ret);
49          getsockopt (fd, SOL_SOCKET, SO_ERROR, &ret, &optlen);
50          if (ret != 0)
51              goto fail;
52 +#endif
53      }
54      s->fd = fd;
55      return 0;