aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-11 01:30:25 +0200
committerDiego Biurrun <diego@biurrun.de>2013-04-12 09:36:47 +0200
commit2004c7c8f763280ff3ba675ea21cf25396528fd3 (patch)
treebf1fabd05d9d6de2f9915ecc5fdb57fccadee156
parentc51a3a5bd9a5b404176ff343ecadb80b2553b256 (diff)
downloadffmpeg-2004c7c8f763280ff3ba675ea21cf25396528fd3.tar.gz
x86: dsputil: cosmetics: Remove two pointless variable indirections
-rw-r--r--libavcodec/x86/dsputil_mmx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index 6fa593304f..ad6812fe8c 100644
--- a/libavcodec/x86/dsputil_mmx.c
+++ b/libavcodec/x86/dsputil_mmx.c
@@ -1438,8 +1438,7 @@ static av_cold void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx,
static av_cold void dsputil_init_mmxext(DSPContext *c, AVCodecContext *avctx,
int mm_flags)
{
- const int bit_depth = avctx->bits_per_raw_sample;
- const int high_bit_depth = bit_depth > 8;
+ const int high_bit_depth = avctx->bits_per_raw_sample > 8;
#if HAVE_YASM
SET_QPEL_FUNCS(avg_qpel, 0, 16, mmxext, );
@@ -1570,8 +1569,7 @@ static av_cold void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx,
static av_cold void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx,
int mm_flags)
{
- const int bit_depth = avctx->bits_per_raw_sample;
- const int high_bit_depth = bit_depth > 8;
+ const int high_bit_depth = avctx->bits_per_raw_sample > 8;
#if HAVE_SSE2_INLINE
if (!high_bit_depth && avctx->idct_algo == FF_IDCT_XVIDMMX) {