]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_blackframe.c
Fix timestamp handling in more filters after the change which set the
[ffmpeg] / libavfilter / vf_blackframe.c
index 47553f0fe70e7b19425323e34b6d3ccb1387b8a0..47ab3cfc1d60880b2f107561f3c19702878510e2 100644 (file)
@@ -99,7 +99,7 @@ static void end_frame(AVFilterLink *inlink)
     if (pblack >= blackframe->bamount)
         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);
+               picref->pts == AV_NOPTS_VALUE ? -1 : picref->pts * av_q2d(inlink->time_base));
 
     blackframe->frame++;
     blackframe->nblack = 0;