avfilter/vf_deshake: dont pass the wrong context into the SAD functions
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 May 2014 20:52:17 +0000 (22:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 3 May 2014 20:52:17 +0000 (22:52 +0200)
This fixes pointer type warnings
The context should have been unused so this should not fix any real bug

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_deshake.c

index f77a9bd..6cfb171 100644 (file)
@@ -132,7 +132,7 @@ static void find_block_motion(DeshakeContext *deshake, uint8_t *src1,
     int smallest = INT_MAX;
     int tmp, tmp2;
 
-    #define CMP(i, j) deshake->c.sad[0](deshake, src1 + cy * stride + cx, \
+    #define CMP(i, j) deshake->c.sad[0](NULL, src1 + cy * stride + cx, \
                                         src2 + (j) * stride + (i), stride, \
                                         deshake->blocksize)