OSDN Git Service

Make the blackframe filter print the time, in addition to the
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 2 Nov 2010 19:42:05 +0000 (19:42 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 2 Nov 2010 19:42:05 +0000 (19:42 +0000)
timestamp, for each detected black frame.

Originally committed as revision 25648 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/vf_blackframe.c

index 0645ffa..47553f0 100644 (file)
@@ -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++;