Thanks for the quick merge. Unfortunately, i realized i only added the
metadata for single frame detection. This patch adds both single and
multiple frame detection.
From 61bd64c4c408c6842e5599fdaed9a4353696c337 Mon Sep 17 00:00:00 2001
From: Kevin Mitchell <kevmi...@gmail.com>
Date: Sun, 19 Oct 2014 13:32:56 -0700
Subject: [PATCH] avfilter/vf_idet: add both multiple and single frame
 detection metadata

---
 libavfilter/vf_idet.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index ebbc7d2..8a842a1 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -178,10 +178,15 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref)
 
     filter(ctx);
 
-    av_dict_set_int(metadata, "lavfi.idet.tff", idet->prestat[TFF], 0);
-    av_dict_set_int(metadata, "lavfi.idet.bff", idet->prestat[BFF], 0);
-    av_dict_set_int(metadata, "lavfi.idet.progressive", idet->prestat[PROGRESSIVE], 0);
-    av_dict_set_int(metadata, "lavfi.idet.undetermined", idet->prestat[UNDETERMINED], 0);
+    av_dict_set_int(metadata, "lavfi.idet.single_tff", idet->prestat[TFF], 0);
+    av_dict_set_int(metadata, "lavfi.idet.single_bff", idet->prestat[BFF], 0);
+    av_dict_set_int(metadata, "lavfi.idet.single.progressive", idet->prestat[PROGRESSIVE], 0);
+    av_dict_set_int(metadata, "lavfi.idet.single.undetermined", idet->prestat[UNDETERMINED], 0);
+
+    av_dict_set_int(metadata, "lavfi.idet.multiple.tff", idet->poststat[TFF], 0);
+    av_dict_set_int(metadata, "lavfi.idet.multiple.bff", idet->poststat[BFF], 0);
+    av_dict_set_int(metadata, "lavfi.idet.multiple.progressive", idet->poststat[PROGRESSIVE], 0);
+    av_dict_set_int(metadata, "lavfi.idet.multiple.undetermined", idet->poststat[UNDETERMINED], 0);
 
     return ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->cur));
 }
-- 
2.1.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to