Browse Source

hpel_motion_search: move code used for asserts under correct #if

This avoids compiler warnings about set but not used variables

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
2fbc8ea08e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/motion_est_template.c

+ 1
- 1
libavcodec/motion_est_template.c View File

@@ -89,7 +89,7 @@ static int hpel_motion_search(MpegEncContext * s,
const int b= score_map[(index+(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)]
+ (mv_penalty[bx - pred_x] + mv_penalty[by+2 - pred_y])*c->penalty_factor;

#if 1
#if ASSERT_LEVEL > 1
unsigned key;
unsigned map_generation= c->map_generation;
key= ((my-1)<<ME_MAP_MV_BITS) + (mx) + map_generation;


Loading…
Cancel
Save