]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_deshake.c
avcodec/jpeg2000: Check comp coords to be within the supported size
[ffmpeg] / libavfilter / vf_deshake.c
index e32436d00c4c1faf70bf0344b7e6c6eddff42278..79fcc200e1b8a2a8a8f32001ce86b99dceaa6def 100644 (file)
@@ -94,8 +94,7 @@ AVFILTER_DEFINE_CLASS(deshake);
 
 static int cmp(const void *a, const void *b)
 {
-    const double va = *(const double *)a, vb = *(const double *)b;
-    return va < vb ? -1 : ( va > vb ? 1 : 0 );
+    return FFDIFFSIGN(*(const double *)a, *(const double *)b);
 }
 
 /**