diff options
author | Måns Rullgård <mans@mansr.com> | 2010-06-02 22:05:25 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-06-02 22:05:25 +0000 |
commit | 68dacb4e3b19772334b1ebcee3b7ac9560922f80 (patch) | |
tree | c635330baa4182aa3e6b6b48a8c2d760546d4e78 /libavcodec/arm | |
parent | 48a783f3d7976e54bd1abe2182138181e17d639f (diff) | |
download | ffmpeg-68dacb4e3b19772334b1ebcee3b7ac9560922f80.tar.gz |
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.
Originally committed as revision 23436 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/arm')
-rw-r--r-- | libavcodec/arm/mpegvideo_arm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/arm/mpegvideo_arm.c b/libavcodec/arm/mpegvideo_arm.c index cb8a7e087e..6cb1bc8582 100644 --- a/libavcodec/arm/mpegvideo_arm.c +++ b/libavcodec/arm/mpegvideo_arm.c @@ -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); |