[FFmpeg-devel] [HACK]Fix compilation with icc on x86-32

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Oct 21 14:01:24 CEST 2013


Hi!

Attached patch fixes compilation with icc on x86-32, broken for all current 
versions.

I have no opinion on this, so the usual flames will not hurt me, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/hevc_cabac.c b/libavcodec/hevc_cabac.c
index e6cbf1a..0e37cce 100644
--- a/libavcodec/hevc_cabac.c
+++ b/libavcodec/hevc_cabac.c
@@ -1049,6 +1049,9 @@ static av_always_inline int coeff_sign_flag_decode(HEVCContext *s, uint8_t nb)
     return ret;
 }
 
+#if ARCH_X86_32 && defined(__INTEL_COMPILER) && __INTEL_COMPILER <= 1400
+#pragma optimize ( "", off )
+#endif
 void ff_hevc_hls_residual_coding(HEVCContext *s, int x0, int y0,
                                 int log2_trafo_size, enum ScanType scan_idx,
                                 int c_idx)
@@ -1391,6 +1394,9 @@ void ff_hevc_hls_residual_coding(HEVCContext *s, int x0, int y0,
             s->hevcdsp.transform_add[log2_trafo_size-2](dst, coeffs, stride);
     }
 }
+#if defined(__INTEL_COMPILER)
+#pragma optimize ( "", on )
+#endif
 
 void ff_hevc_hls_mvd_coding(HEVCContext *s, int x0, int y0, int log2_cb_size)
 {


More information about the ffmpeg-devel mailing list