[FFmpeg-devel] [PATCH v3] avfilter/vf_fps: fix duration

Thomas Mundt loudmax at yahoo.de
Fri Mar 24 12:39:29 EET 2017


Hi,

attached patch will fix ticket #2674.
Tested with examples from ticket 2674 and other files at various frame rates.

v2: Use av_frame_get_pkt_duration to calculate count of duplication of last frame.
Use average of the earlier pts steps when av_frame_get_pkt_duration is not set.
v3: Write at least one output frame when start_time is zero or not set.
Also changed broken filter-fps-r fate ref. I missed that in v2. Sorry!

Please comment....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avfilter-vf_fps-fix-duration.patch
Type: application/octet-stream
Size: 5796 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170324/b215f18b/attachment-0004.obj>


More information about the ffmpeg-devel mailing list