changeset 11816:7c2369ec6faa libavcodec

ARM: check struct offsets only when they are used The offsets differ depending on configuration, so only check them when they will actually be used. Presently, this is when NEON is enabled.
author mru
date Wed, 02 Jun 2010 22:05:25 +0000
parents dfdb608a78ef
children 21566c95834c
files arm/mpegvideo_arm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/arm/mpegvideo_arm.c	Wed Jun 02 22:00:53 2010 +0000
+++ b/arm/mpegvideo_arm.c	Wed Jun 02 22:05:25 2010 +0000
@@ -24,12 +24,14 @@
 #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);