|
@@ -131,7 +131,15 @@ 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);
|
|
|
+// const char *image_hash = fingerprintFromFFAVFrame(ctx->log, video_frame, &len);
|
|
|
+ char image_hash[64];
|
|
|
+ if (1) {
|
|
|
+ memset((void *)image_hash, 0,sizeof(char) * 8 * 8);
|
|
|
+ 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);
|