diff options
author | Koop Mast <kwm@FreeBSD.org> | 2011-06-21 13:46:27 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2011-06-21 13:46:27 +0000 |
commit | 91ac7cdee5143db5f44488e44a8cc0ec9e0e0d3e (patch) | |
tree | 55e7a99caa12ff17d9a15874e640a2df9c3fc251 /multimedia/gstreamer-ffmpeg | |
parent | d066a6fca724ac7dbe8b501d20a3321bc92d2d02 (diff) | |
download | ports-91ac7cdee5143db5f44488e44a8cc0ec9e0e0d3e.tar.gz ports-91ac7cdee5143db5f44488e44a8cc0ec9e0e0d3e.zip |
Notes
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"\ |