summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_overlay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2014-06-20 13:33:37 +0200
committerStefano Sabatini <stefasab@gmail.com>2014-07-02 18:42:15 +0200
commit462c9ee3ac45cfd451046f1f8ad6a19226c14f40 (patch)
tree3e0df76ffe25ce2d70b1329e95644f271121548e /libavfilter/vf_overlay.c
parent5307fa00a45b50897af3d5070e936fcaa82ae19e (diff)
downloadffmpeg-streaming-462c9ee3ac45cfd451046f1f8ad6a19226c14f40.zip
ffmpeg-streaming-462c9ee3ac45cfd451046f1f8ad6a19226c14f40.tar.gz
lavfi/overlay: show incoming frames on debug messages
This is especially useful to debug queue overflow issues. Ideally we should be able to set the debug message at the dualinput/framesync level, but they do not have the information related to the filter context and the inlink, so cannot access much useful information. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavfilter/vf_overlay.c')
-rw-r--r--libavfilter/vf_overlay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 85cddf1..1d9240c 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -34,6 +34,7 @@
#include "libavutil/imgutils.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
+#include "libavutil/timestamp.h"
#include "internal.h"
#include "dualinput.h"
#include "drawutils.h"
@@ -576,6 +577,7 @@ static AVFrame *do_blend(AVFilterContext *ctx, AVFrame *mainpic,
static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
{
OverlayContext *s = inlink->dst->priv;
+ av_log(inlink->dst, AV_LOG_DEBUG, "Incoming frame (time:%s) from link #%d\n", av_ts2timestr(inpicref->pts, &inlink->time_base), FF_INLINK_IDX(inlink));
return ff_dualinput_filter_frame(&s->dinput, inlink, inpicref);
}
OpenPOWER on IntegriCloud