]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg.patch.cvs
* remove patch that is no longer necessary.
[vlc] / extras / contrib / src / Patches / ffmpeg.patch.cvs
1 diff -ru ffmpeg-original/libavcodec/eval.c ffmpeg/libavcodec/eval.c
2 --- ffmpeg-original/libavcodec/eval.c   Wed Feb 18 12:49:30 2004
3 +++ ffmpeg/libavcodec/eval.c    Fri Jul 23 11:39:29 2004
4 @@ -34,6 +34,8 @@
5  #include <string.h>
6  #include <math.h>
7  
8 +/* Meuuh power */
9 +#undef NAN
10  #ifndef NAN
11    #define NAN 0
12  #endif
13 diff -ru ffmpeg-original/libavcodec/msmpeg4.c ffmpeg/libavcodec/msmpeg4.c
14 --- ffmpeg-original/libavcodec/msmpeg4.c        Tue May 25 18:07:24 2004
15 +++ ffmpeg/libavcodec/msmpeg4.c Fri Jul 23 11:49:38 2004
16 @@ -716,7 +716,7 @@
17         necessitate to modify mpegvideo.c. The problem comes from the
18         fact they decided to store the quantized DC (which would lead
19         to problems if Q could vary !) */
20 -#if defined ARCH_X86 && !defined PIC
21 +#if defined ARCH_X86 && !defined PIC && !defined __PIC__
22      asm volatile(
23          "movl %3, %%eax                \n\t"
24         "shrl $1, %%eax         \n\t"
25 diff -ru ffmpeg-original/libavformat/tcp.c ffmpeg/libavformat/tcp.c
26 --- ffmpeg-original/libavformat/tcp.c   Sat Jun 19 03:59:34 2004
27 +++ ffmpeg/libavformat/tcp.c    Fri Jul 23 11:52:23 2004
28 @@ -32,6 +32,7 @@
29  #include <netdb.h>
30  #include <sys/time.h>
31  #include <fcntl.h>
32 +#define socklen_t int
33  
34  typedef struct TCPContext {
35      int fd;
36 @@ -120,11 +121,13 @@
37                  break;
38          }
39          
40 +#ifndef __BEOS__
41          /* test error */
42          optlen = sizeof(ret);
43          getsockopt (fd, SOL_SOCKET, SO_ERROR, &ret, &optlen);
44          if (ret != 0)
45              goto fail;
46 +#endif
47      }
48      s->fd = fd;
49      return 0;