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

Michael Niedermayer michael at niedermayer.cc
Wed Mar 22 05:08:49 EET 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....


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170322/89a20e62/attachment.sig>


More information about the ffmpeg-devel mailing list