summaryrefslogtreecommitdiff
path: root/libavcodec/motion_est_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-29 19:37:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-29 19:37:20 +0100
commit05d81a57f56aa1329a18c41207c7e8cef7b7317f (patch)
tree345d5c6aede846fdce836f548cfe67d07109d1c9 /libavcodec/motion_est_template.c
parent4f1d7cc0ed66f4ab390631722a7daa660e55a0f3 (diff)
downloadffmpeg-05d81a57f56aa1329a18c41207c7e8cef7b7317f.tar.gz
motion_est_template: fix warning: "ASSERT_LEVEL" is not defined
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/motion_est_template.c')
-rw-r--r--libavcodec/motion_est_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/motion_est_template.c b/libavcodec/motion_est_template.c
index 9de36129a2..3123edcf92 100644
--- a/libavcodec/motion_est_template.c
+++ b/libavcodec/motion_est_template.c
@@ -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 ASSERT_LEVEL > 1
+#if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 1
unsigned key;
unsigned map_generation= c->map_generation;
key= ((my-1)<<ME_MAP_MV_BITS) + (mx) + map_generation;