diff options
author | kwm <kwm@FreeBSD.org> | 2011-06-21 21:46:27 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2011-06-21 21:46:27 +0800 |
commit | 400b25435d593aaac47c110802449a7141ec0063 (patch) | |
tree | 7ced8f6dee72035e00173e7cfdd23afbdd055502 /multimedia/gstreamer-ffmpeg | |
parent | 9147e16d0535361ead6ebba7986c1c4f17ee5425 (diff) | |
download | freebsd-ports-gnome-400b25435d593aaac47c110802449a7141ec0063.tar.gz freebsd-ports-gnome-400b25435d593aaac47c110802449a7141ec0063.tar.zst freebsd-ports-gnome-400b25435d593aaac47c110802449a7141ec0063.zip |
Fix build with Clang
Diffstat (limited to 'multimedia/gstreamer-ffmpeg')
2 files changed, 34 insertions, 0 deletions
diff --git a/multimedia/gstreamer-ffmpeg/files/patch-gst-libs__ext__ffmpeg__libavcodec__x86__dsputil_mmx.c b/multimedia/gstreamer-ffmpeg/files/patch-gst-libs__ext__ffmpeg__libavcodec__x86__dsputil_mmx.c new file mode 100644 index 000000000000..5207c37e67b1 --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/files/patch-gst-libs__ext__ffmpeg__libavcodec__x86__dsputil_mmx.c @@ -0,0 +1,11 @@ +--- gst-libs/ext/ffmpeg/libavcodec/x86/dsputil_mmx.c.orig 2011-06-21 13:50:43.000000000 +0200 ++++ gst-libs/ext/ffmpeg/libavcodec/x86/dsputil_mmx.c 2011-06-21 13:51:01.000000000 +0200 +@@ -606,7 +606,7 @@ static void add_hfyu_median_prediction_c + __asm__ volatile( + "mov %7, %3 \n" + "1: \n" +- "movzx (%3,%4), %2 \n" ++ "movzbl (%3,%4), %2 \n" + "mov %2, %k3 \n" + "sub %b1, %b3 \n" + "add %b0, %b3 \n" diff --git a/multimedia/gstreamer-ffmpeg/files/patch-gst-libs__ext__ffmpeg__libavcodec__x86__snowdsp_mmx.c b/multimedia/gstreamer-ffmpeg/files/patch-gst-libs__ext__ffmpeg__libavcodec__x86__snowdsp_mmx.c new file mode 100644 index 000000000000..862846a6e268 --- /dev/null +++ b/multimedia/gstreamer-ffmpeg/files/patch-gst-libs__ext__ffmpeg__libavcodec__x86__snowdsp_mmx.c @@ -0,0 +1,23 @@ +--- gst-libs/ext/ffmpeg/libavcodec/x86/snowdsp_mmx.c.orig 2011-06-21 15:24:51.000000000 +0200 ++++ gst-libs/ext/ffmpeg/libavcodec/x86/snowdsp_mmx.c 2011-06-21 15:26:51.000000000 +0200 +@@ -805,13 +805,19 @@ snow_inner_add_yblock_sse2_end_16 + "packuswb %%mm5, %%mm1 \n\t"\ + "movq %%mm1, "write_offset"(%%"REG_d") \n\t" + ++#if ARCH_X86_64 ++#define OPSIZE "q" ++#else ++#define OPSIZE "l" ++#endif ++ + #define snow_inner_add_yblock_mmx_end(s_step)\ + "add $"s_step", %%"REG_S" \n\t"\ + "add %%"REG_c", "PTR_SIZE"*3(%%"REG_a");\n\t"\ + "add %%"REG_c", "PTR_SIZE"*2(%%"REG_a");\n\t"\ + "add %%"REG_c", "PTR_SIZE"*1(%%"REG_a");\n\t"\ + "add %%"REG_c", (%%"REG_a") \n\t"\ +- "add $"PTR_SIZE"*1, %1 \n\t"\ ++ "add"OPSIZE" $"PTR_SIZE"*1, %1 \n\t"\ + "add %%"REG_c", %0 \n\t"\ + "dec %2 \n\t"\ + "jnz 1b \n\t"\ |