VIS-specific code should be enabled conditional to HAVE_VIS, not ARCH_SPARC.

Originally committed as revision 10559 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Diego Biurrun 18 years ago
parent 940f335a3c
commit 8b505fc689
  1. 2
      libavcodec/dsputil.c
  2. 2
      libavcodec/dsputil.h

@ -4150,7 +4150,7 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx)
if (ENABLE_MMX) dsputil_init_mmx (c, avctx); if (ENABLE_MMX) dsputil_init_mmx (c, avctx);
if (ENABLE_ARMV4L) dsputil_init_armv4l(c, avctx); if (ENABLE_ARMV4L) dsputil_init_armv4l(c, avctx);
if (ENABLE_MLIB) dsputil_init_mlib (c, avctx); if (ENABLE_MLIB) dsputil_init_mlib (c, avctx);
if (ENABLE_SPARC) dsputil_init_vis (c, avctx); if (ENABLE_VIS) dsputil_init_vis (c, avctx);
if (ENABLE_ALPHA) dsputil_init_alpha (c, avctx); if (ENABLE_ALPHA) dsputil_init_alpha (c, avctx);
if (ENABLE_POWERPC) dsputil_init_ppc (c, avctx); if (ENABLE_POWERPC) dsputil_init_ppc (c, avctx);
if (ENABLE_MMI) dsputil_init_mmi (c, avctx); if (ENABLE_MMI) dsputil_init_mmi (c, avctx);

@ -538,7 +538,7 @@ extern int mm_flags;
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v)
#define STRIDE_ALIGN 8 #define STRIDE_ALIGN 8
#elif defined(ARCH_SPARC) #elif defined(HAVE_VIS)
/* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v) #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(8, t, v)

Loading…
Cancel
Save