[FFmpeg-devel] [PATCH v3] avfilter/vf_fps: fix duration
george at nsup.org
Sun Apr 2 14:16:19 EEST 2017
Le tridi 13 germinal, an CCXXV, Thomas Mundt a écrit :
> I found the use of this function in f_loop.c, so I thought it´s ok.
Well, it is a bug. I missed it when it was first committed.
> link->current_pts always returns the pts until the current (last) frame.
> I can calculate its duration for cfr video, but not for vfr. I need the pts until the virtual next frame.
> At which point in the code can I get it?
link->current_pts is updated when request_frame() returns EOF. But to
make it work, it would be necessary that the application injects the
timestamp when marking EOF, which is not yet done, but hopefully I will
have time to work on it in the next two weeks.
But it is the correct way of doing things. Using the duration has too
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Digital signature
More information about the ffmpeg-devel