Browse Source

ffmpeg: patch to fix build with uClibc 0.9.33.2

Signed-off-by: Ted Hess <thess@kitschensync.net>
Ted Hess 10 years ago
parent
commit
ca7ddc5abc
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      multimedia/ffmpeg/patches/010-remove_unused_fminf_definition.patch

+ 18
- 0
multimedia/ffmpeg/patches/010-remove_unused_fminf_definition.patch View File

@@ -0,0 +1,18 @@
1
+--- a/libavutil/libm.h
2
++++ b/libavutil/libm.h
3
+@@ -82,6 +82,7 @@ static av_always_inline float cbrtf(floa
4
+ #define exp2f(x) ((float)exp2(x))
5
+ #endif /* HAVE_EXP2F */
6
+ 
7
++/* ---------- BROKEN: Defined in math.h but not present in uClibc 0.9.33.2 
8
+ #if !HAVE_FMINF
9
+ #undef fminf
10
+ static av_always_inline av_const float fminf(float x, float y)
11
+@@ -91,6 +92,7 @@ static av_always_inline av_const float f
12
+     return x > y ? y : (x == x ? x : y);
13
+ }
14
+ #endif
15
++------------------------------------------------------------------------- */
16
+ 
17
+ #if !HAVE_ISINF
18
+ static av_always_inline av_const int isinf(float x)