wok-current view gst-ffmpeg/stuff/gst-ffmpeg_gcc47.patch @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (5 months ago)
parents
children
line source
1 gst-ffmpeg libav: Fixes compiling gst-ffmpeg with gcc-4.7
3 Fetch from: http://www.slackware.com/~alien/slackbuilds/gst-plugins-ffmpeg/build/gst-ffmpeg-0.10.13_gcc47.patch
5 Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
6 ---
7 Submitted By: Andrew Benton <andy@benton.eu.com>
8 Date: 2012-06-15
9 Initial Package Version: 0.10.13
10 Upstream Status: From upstream
11 Origin:
12 http://git.videolan.org/?p=ffmpeg.git;a=patch;h=5f654897e325349dacf2546674e0510bb72ecb50
14 Description: Fixes compiling gst-ffmpeg with gcc-4.7
16 libavcodec/x86/h264_qpel_mmx.c: Assembler messages:
17 libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp'
18 libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp'
19 libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp'
20 libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp'
21 libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
22 libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
23 libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
24 make[5]: *** [libavcodec/x86/dsputil_mmx.o] Error 1
26 Index: gst-ffmpeg-0.10.13/gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c
27 ===================================================================
28 --- gst-ffmpeg-0.10.13.orig/gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c 2012-03-30 11:39:41.324522051 -0700
29 +++ gst-ffmpeg-0.10.13/gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c 2012-03-30 11:54:08.152564075 -0700
30 @@ -398,7 +398,7 @@
31 "2: \n\t"\
32 \
33 : "+a"(src), "+c"(dst)\
34 - : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "g"(h)\
35 + : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "rm"(h)\
36 : "memory"\
37 );\
38 src += 4-(h+5)*srcStride;\
39 @@ -446,7 +446,7 @@
40 QPEL_H264HV(%%mm3, %%mm4, %%mm5, %%mm0, %%mm1, %%mm2, 15*48)\
41 "2: \n\t"\
42 : "+a"(src)\
43 - : "c"(tmp), "S"((x86_reg)srcStride), "g"(size)\
44 + : "c"(tmp), "S"((x86_reg)srcStride), "rm"(size)\
45 : "memory"\
46 );\
47 tmp += 4;\
48 @@ -823,7 +823,7 @@
49 "2: \n\t"\
50 \
51 : "+a"(src), "+c"(dst)\
52 - : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "g"(h)\
53 + : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "rm"(h)\
54 : XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3", \
55 "%xmm4", "%xmm5", "%xmm6", "%xmm7",)\
56 "memory"\
57 @@ -878,7 +878,7 @@
58 QPEL_H264HV_XMM(%%xmm3, %%xmm4, %%xmm5, %%xmm0, %%xmm1, %%xmm2, 15*48)
59 "2: \n\t"
60 : "+a"(src)
61 - : "c"(tmp), "S"((x86_reg)srcStride), "g"(size)
62 + : "c"(tmp), "S"((x86_reg)srcStride), "rm"(size)
63 : XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3",
64 "%xmm4", "%xmm5", "%xmm6", "%xmm7",)
65 "memory"