phajdan.jr 14/05/24 08:15:56 Added: chromium-ffmpeg-r0.patch Log: Fix build on hardened x86, bug #507080 by Anthoine Bourgeois. (Portage version: 2.2.8-r1/cvs/Linux i686, signed Manifest commit with key 0x4F1A2555EA71991D!)
Revision Changes Path 1.1 www-client/chromium/files/chromium-ffmpeg-r0.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium-ffmpeg-r0.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium-ffmpeg-r0.patch?rev=1.1&content-type=text/plain Index: chromium-ffmpeg-r0.patch =================================================================== --- third_party/ffmpeg/libavcodec/x86/vp3dsp_init.c.orig 2014-05-22 08:12:08.770613935 +0000 +++ third_party/ffmpeg/libavcodec/x86/vp3dsp_init.c 2014-05-22 08:20:23.970456534 +0000 @@ -43,7 +43,7 @@ void ff_vp3_h_loop_filter_mmxext(uint8_t *src, int stride, int *bounding_values); -#if HAVE_MMX_INLINE +#if HAVE_MMX_INLINE && HAVE_6REGS #define MOVQ_BFE(regd) \ __asm__ volatile ( \ @@ -95,15 +95,15 @@ :"memory"); // STOP_TIMER("put_vp_no_rnd_pixels8_l2_mmx") } -#endif /* HAVE_MMX_INLINE */ +#endif /* HAVE_MMX_INLINE && HAVE_6REGS */ av_cold void ff_vp3dsp_init_x86(VP3DSPContext *c, int flags) { int cpu_flags = av_get_cpu_flags(); -#if HAVE_MMX_INLINE +#if HAVE_MMX_INLINE && HAVE_6REGS c->put_no_rnd_pixels_l2 = put_vp_no_rnd_pixels8_l2_mmx; -#endif /* HAVE_MMX_INLINE */ +#endif /* HAVE_MMX_INLINE && HAVE_6REGS */ #if ARCH_X86_32 if (EXTERNAL_MMX(cpu_flags)) {