[FFmpeg-cvslog] x86: dsputil: Move some ifdefs to avoid unused variable warnings

Diego Biurrun git at videolan.org
Fri Apr 12 23:48:17 CEST 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Apr 11 01:31:15 2013 +0200| [a3cb865310cc10927e90d7b44d65e3a95af547b6] | committer: Diego Biurrun

x86: dsputil: Move some ifdefs to avoid unused variable warnings

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3cb865310cc10927e90d7b44d65e3a95af547b6
---

 libavcodec/x86/dsputil_mmx.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index ad6812f..f991bbe 100644
--- a/libavcodec/x86/dsputil_mmx.c
+++ b/libavcodec/x86/dsputil_mmx.c
@@ -1511,9 +1511,9 @@ static av_cold void dsputil_init_mmxext(DSPContext *c, AVCodecContext *avctx,
 static av_cold void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx,
                                        int mm_flags)
 {
+#if HAVE_YASM
     const int high_bit_depth = avctx->bits_per_raw_sample > 8;
 
-#if HAVE_YASM
     if (!high_bit_depth) {
         c->put_pixels_tab[0][1] = ff_put_pixels16_x2_3dnow;
         c->put_pixels_tab[0][2] = ff_put_pixels16_y2_3dnow;
@@ -1551,9 +1551,9 @@ static av_cold void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx,
 static av_cold void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx,
                                      int mm_flags)
 {
+#if HAVE_INLINE_ASM
     const int high_bit_depth = avctx->bits_per_raw_sample > 8;
 
-#if HAVE_INLINE_ASM
     if (!high_bit_depth) {
         if (!(CONFIG_MPEG_XVMC_DECODER && avctx->xvmc_acceleration > 1)) {
             /* XvMCCreateBlocks() may not allocate 16-byte aligned blocks */



More information about the ffmpeg-cvslog mailing list