Commit 2004c7c8 authored by Diego Biurrun's avatar Diego Biurrun

x86: dsputil: cosmetics: Remove two pointless variable indirections

parent c51a3a5b
...@@ -1438,8 +1438,7 @@ static av_cold void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx, ...@@ -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, static av_cold void dsputil_init_mmxext(DSPContext *c, AVCodecContext *avctx,
int mm_flags) int mm_flags)
{ {
const int bit_depth = avctx->bits_per_raw_sample; const int high_bit_depth = avctx->bits_per_raw_sample > 8;
const int high_bit_depth = bit_depth > 8;
#if HAVE_YASM #if HAVE_YASM
SET_QPEL_FUNCS(avg_qpel, 0, 16, mmxext, ); SET_QPEL_FUNCS(avg_qpel, 0, 16, mmxext, );
...@@ -1570,8 +1569,7 @@ static av_cold void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx, ...@@ -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, static av_cold void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx,
int mm_flags) int mm_flags)
{ {
const int bit_depth = avctx->bits_per_raw_sample; const int high_bit_depth = avctx->bits_per_raw_sample > 8;
const int high_bit_depth = bit_depth > 8;
#if HAVE_SSE2_INLINE #if HAVE_SSE2_INLINE
if (!high_bit_depth && avctx->idct_algo == FF_IDCT_XVIDMMX) { if (!high_bit_depth && avctx->idct_algo == FF_IDCT_XVIDMMX) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment