DevYK 3 gadi atpakaļ
vecāks
revīzija
ea725bda72
1 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. 8 8
      src/utils/video_similarity.cpp

+ 8 - 8
src/utils/video_similarity.cpp

@@ -130,14 +130,14 @@ int video_similarity_detection_start(long id, int force_keyframe,
 
         int len = 0;
         if (ctx->log) fprintf(ctx->log, "fingerprintFromFFAVFrame 1\n");
-//        const char *image_hash = fingerprintFromFFAVFrame(ctx->log, video_frame, &len);
-        char image_hash[64] = {0};
-        if (1) {
-            for (int i = 0; i < 64; ++i) {
-                image_hash[i] = 1;
-            }
-            len = 64;
-        }
+        const char *image_hash = fingerprintFromFFAVFrame(ctx->log, video_frame, &len);
+//        char image_hash[64] = {0};
+//        if (1) {
+//            for (int i = 0; i < 64; ++i) {
+//                image_hash[i] = 1;
+//            }
+//            len = 64;
+//        }
         if (ctx->log) fprintf(ctx->log, "fingerprintFromFFAVFrame exit \n");
         if (len > 64) {
             LOGE("size=%d \n", len);