ARM: check struct offsets only when they are used
authorMåns Rullgård <mans@mansr.com>
Wed, 2 Jun 2010 22:05:25 +0000 (22:05 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 2 Jun 2010 22:05:25 +0000 (22:05 +0000)
The offsets differ depending on configuration, so only check them when
they will actually be used.  Presently, this is when NEON is enabled.

Originally committed as revision 23436 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/arm/mpegvideo_arm.c

index cb8a7e087e4c10199466a24f2163eca26864e8ae..6cb1bc85821a1cc0a99b07bddc20ef5a1914031f 100644 (file)
 #include "mpegvideo_arm.h"
 #include "asm-offsets.h"
 
+#if HAVE_NEON
 CHK_OFFS(MpegEncContext, y_dc_scale,       Y_DC_SCALE);
 CHK_OFFS(MpegEncContext, c_dc_scale,       C_DC_SCALE);
 CHK_OFFS(MpegEncContext, ac_pred,          AC_PRED);
 CHK_OFFS(MpegEncContext, block_last_index, BLOCK_LAST_INDEX);
 CHK_OFFS(MpegEncContext, inter_scantable.raster_end, INTER_SCANTAB_RASTER_END);
 CHK_OFFS(MpegEncContext, h263_aic,         H263_AIC);
+#endif
 
 void ff_dct_unquantize_h263_inter_neon(MpegEncContext *s, DCTELEM *block,
                                        int n, int qscale);