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

Thomas Mundt loudmax at yahoo.de
Wed Mar 22 20:12:35 EET 2017


>>Michael Niedermayer <michael at niedermayer.cc> schrieb am Mi, 22.3.2017:
>>>On Tue, Mar 21, 2017 at 11:25:21PM +0000, Thomas Mundt wrote:
>> Hi,
>> 
>> attached patch will fix ticket #2674.
>> It makes the fps filter duplicate or drop the last frame depending on the input and output frame rates.
>> Tested with examples from ticket 2674 and other files at various frame rates.
>> 
>> Regards,
>> Thomas
>
>>  vf_fps.c |   23 ++++++++++++++++++-----
>>  1 file changed, 18 insertions(+), 5 deletions(-)
>> 01d220968700e58b1bd772fbf63dee55d29955f6  0001-avfilter-vf_fps-fix-duration.patch
>> From 6724eb3dae7b491d5bac3903cf4b7dc4ff037e6c Mon Sep 17 00:00:00 2001
>> From: Thomas Mundt <loudmax at yahoo.de>
>> Date: Wed, 22 Mar 2017 00:14:53 +0100
>> Subject: [PATCH] avfilter/vf_fps: fix duration
>> 
>> Fix Ticket #2674
>> This makes the fps filter duplicate or drop the last frame depending on the input and output frame rates. Tested with examples from ticket 2674 and other files at various frame rates.
>> 
>> Signed-off-by: Thomas Mundt <loudmax at yahoo.de>
>> ---
>>  libavfilter/vf_fps.c | 23 ++++++++++++++++++-----
>>  1 file changed, 18 insertions(+), 5 deletions(-)
>
> breaks fate
> --- ./tests/ref/fate/m4v-cfr    2017-03-20 19:25:54.157895388 +0100
> +++ tests/data/fate/m4v-cfr     2017-03-22 04:06:23.690852041 +0100
> @@ -44,4 +44,3 @@
>  0,         38,         38,        1,   115200, 0xf30825d5
>  0,         39,         39,        1,   115200, 0xe3c944a1
>  0,         40,         40,        1,   115200, 0x8fec4420
> -0,         41,         41,        1,   115200, 0x9381fdab
> Test m4v-cfr failed. Look at tests/data/fate/m4v-cfr.err for details.
> make: *** [fate-m4v-cfr] Error 1
> make: *** Waiting for unfinished jobs....
> 

New Patch attached...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avfilter-vf_fps-fix-duration.patch
Type: application/octet-stream
Size: 2494 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170322/ee67cb2f/attachment.obj>


More information about the ffmpeg-devel mailing list