]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/ffmpeg-svn-beos.patch
live: fix unsafe use of setlocale()
[vlc] / extras / contrib / src / Patches / ffmpeg-svn-beos.patch
1 Index: configure
2 ===================================================================
3 RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
4 retrieving revision 1.248
5 diff -u -r1.248 configure
6 --- configure   11 Feb 2006 20:37:12 -0000      1.248
7 +++ configure   12 Feb 2006 15:57:44 -0000
8 @@ -634,6 +634,18 @@
9    esac
10  done
11  
12 +if [ "$cross_prefix" = "i586-pc-beos-" ]; then
13 +  CFLAGS="$CFLAGS -DPIC -fomit-frame-pointer -fno-expensive-optimizations"
14 +  SHFLAGS=-nostart
15 +  audio_oss="no"
16 +  v4l="no"
17 +  v4l2="no"
18 +  dv1394="no"
19 +  netserver="yes"
20 +  need_inet_aton="yes"
21 +  extralibs="-lnet"
22 +fi
23 +
24  # we need to build at least one lib type
25  if test "$lstatic" = "no" && test "$lshared" = "no" ; then
26      cat <<EOF
27 Index: libavformat/movenc.c
28 ===================================================================
29 RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
30 retrieving revision 1.52
31 diff -u -r1.52 movenc.c
32 --- libavformat/movenc.c        11 Feb 2006 18:27:57 -0000      1.52
33 +++ libavformat/movenc.c        12 Feb 2006 15:57:44 -0000
34 @@ -25,6 +25,10 @@
35  #undef NDEBUG
36  #include <assert.h>
37  
38 +#ifndef UINT32_MAX
39 +#define UINT32_MAX 4294967295U
40 +#endif
41 +
42  #define MOV_INDEX_CLUSTER_SIZE 16384
43  #define globalTimescale 1000
44