diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-02 19:42:05 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-02 19:42:05 +0000 |
commit | a4ef9658a2ae9c985a3b5f5006abe74018ce9581 (patch) | |
tree | 4f8a119ad65e22d4d3a7614ee4d69357b8ae7cf2 /libavfilter/vf_blackframe.c | |
parent | d370e3e93168b35c9b72cf752b6c4727884d0e58 (diff) | |
download | ffmpeg-a4ef9658a2ae9c985a3b5f5006abe74018ce9581.tar.gz |
Make the blackframe filter print the time, in addition to the
timestamp, for each detected black frame.
Originally committed as revision 25648 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_blackframe.c')
-rw-r--r-- | libavfilter/vf_blackframe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_blackframe.c b/libavfilter/vf_blackframe.c index 0645ffa219..47553f0fe7 100644 --- a/libavfilter/vf_blackframe.c +++ b/libavfilter/vf_blackframe.c @@ -97,8 +97,8 @@ static void end_frame(AVFilterLink *inlink) pblack = blackframe->nblack * 100 / (inlink->w * inlink->h); if (pblack >= blackframe->bamount) - av_log(ctx, AV_LOG_INFO, "frame:%u pblack:%u pos:%"PRId64" pts:%f\n", - blackframe->frame, pblack, picref->pos, + av_log(ctx, AV_LOG_INFO, "frame:%u pblack:%u pos:%"PRId64" pts:%"PRId64" t:%f\n", + blackframe->frame, pblack, picref->pos, picref->pts, picref->pts == AV_NOPTS_VALUE ? -1 : (double)picref->pts / AV_TIME_BASE); blackframe->frame++; |