summaryrefslogtreecommitdiff
path: root/libavfilter/vf_cropdetect.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-02 19:42:03 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-02 19:42:03 +0000
commitd370e3e93168b35c9b72cf752b6c4727884d0e58 (patch)
treee9ef2f36c3d7ffabbef3f0ff7915f29d61123325 /libavfilter/vf_cropdetect.c
parentda1b9b88a558357361c09cbe0656ce7387dc2e4f (diff)
Make the cropdetect filter print the time for each frame, in addition
to the timestamp. Originally committed as revision 25647 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_cropdetect.c')
-rw-r--r--libavfilter/vf_cropdetect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c
index d651519eee..983e380539 100644
--- a/libavfilter/vf_cropdetect.c
+++ b/libavfilter/vf_cropdetect.c
@@ -182,8 +182,8 @@ static void end_frame(AVFilterLink *inlink)
y += (shrink_by/2 + 1) & ~1;
av_log(ctx, AV_LOG_INFO,
- "x1:%d x2:%d y1:%d y2:%d w:%d h:%d x:%d y:%d pos:%"PRId64" pts:%f crop=%d:%d:%d:%d\n",
- cd->x1, cd->x2, cd->y1, cd->y2, w, h, x, y, picref->pos,
+ "x1:%d x2:%d y1:%d y2:%d w:%d h:%d x:%d y:%d pos:%"PRId64" pts:%"PRId64" t:%f crop=%d:%d:%d:%d\n",
+ cd->x1, cd->x2, cd->y1, cd->y2, w, h, x, y, picref->pos, picref->pts,
picref->pts == AV_NOPTS_VALUE ? -1 : (double)picref->pts / AV_TIME_BASE,
w, h, x, y);
}