|
@@ -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);
|