From 0245abc7c1a52752a80599d4dcdac85771954831 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 26 Mar 2015 15:30:20 +0100 Subject: [PATCH] avcodec/x86/hpeldsp_init: Put CONFIG_* first in if() This is more consistent and may fix a build failure Signed-off-by: Michael Niedermayer --- libavcodec/x86/hpeldsp_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/x86/hpeldsp_init.c b/libavcodec/x86/hpeldsp_init.c index bcae22fa44..8c0a0e9ab3 100644 --- a/libavcodec/x86/hpeldsp_init.c +++ b/libavcodec/x86/hpeldsp_init.c @@ -240,7 +240,7 @@ static void hpeldsp_init_mmxext(HpelDSPContext *c, int flags, int cpu_flags) c->avg_pixels_tab[1][3] = ff_avg_approx_pixels8_xy2_mmxext; } - if (flags & CODEC_FLAG_BITEXACT && CONFIG_VP3_DECODER) { + if (CONFIG_VP3_DECODER && flags & CODEC_FLAG_BITEXACT) { c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_mmxext; c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_mmxext; } @@ -276,7 +276,7 @@ static void hpeldsp_init_3dnow(HpelDSPContext *c, int flags, int cpu_flags) c->avg_pixels_tab[1][3] = ff_avg_approx_pixels8_xy2_3dnow; } - if (flags & CODEC_FLAG_BITEXACT && CONFIG_VP3_DECODER) { + if (CONFIG_VP3_DECODER && flags & CODEC_FLAG_BITEXACT) { c->put_no_rnd_pixels_tab[1][1] = ff_put_no_rnd_pixels8_x2_exact_3dnow; c->put_no_rnd_pixels_tab[1][2] = ff_put_no_rnd_pixels8_y2_exact_3dnow; }