mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
30872fa09b
commit
2fbc8ea08e
|
@ -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)]
|
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;
|
+ (mv_penalty[bx - pred_x] + mv_penalty[by+2 - pred_y])*c->penalty_factor;
|
||||||
|
|
||||||
#if 1
|
#if ASSERT_LEVEL > 1
|
||||||
unsigned key;
|
unsigned key;
|
||||||
unsigned map_generation= c->map_generation;
|
unsigned map_generation= c->map_generation;
|
||||||
key= ((my-1)<<ME_MAP_MV_BITS) + (mx) + map_generation;
|
key= ((my-1)<<ME_MAP_MV_BITS) + (mx) + map_generation;
|
||||||
|
|
Loading…
Reference in New Issue