Revision 7b9e9817 libavcodec/motion_est_template.c

View differences:

libavcodec/motion_est_template.c
158 158
        const int b= score_map[(index+(1<<ME_MAP_SHIFT))&(ME_MAP_SIZE-1)]
159 159
                     + (mv_penalty[bx   - pred_x] + mv_penalty[by+2 - pred_y])*c->penalty_factor;
160 160

  
161
#if 1
161 162
        int key;
162 163
        int map_generation= c->map_generation;
163 164
#ifndef NDEBUG
......
171 172
        assert(map[(index+1)&(ME_MAP_SIZE-1)] == key);
172 173
        key= ((my)<<ME_MAP_MV_BITS) + (mx-1) + map_generation;
173 174
        assert(map[(index-1)&(ME_MAP_SIZE-1)] == key);
175
#endif
174 176
        if(t<=b){
175 177
            CHECK_HALF_MV(0, 1, mx  ,my-1)
176 178
            if(l<=r){

Also available in: Unified diff