[FFmpeg-devel] [PATCH] Check if we do have also a filter_complex filter.

Michael Niedermayer michael at niedermayer.cc
Thu Mar 28 22:27:06 EET 2019


On Wed, Mar 27, 2019 at 02:11:59PM -0700, Thierry Foucu wrote:
> Right now, the code check for no filter description, but if we use a
> filter_complex, the code will use the AVFrame.duration which could be
> wrong in case of using fps filter.
> 
> How to reproduce the problem:
> ffmpeg -f lavfi -i testsrc=duration=1 -vf fps=fps=50 -vsync 1 -f null -
> output 50 frames
> 
> ffmpeg -f lavfi -i testsrc=duration=1 -filter_complex fps=fps=50 -vsync 1 -f null -
> output 51 frames
> 
> With the patch, the same command will always output 50 frames.
> 
> ---
>  fftools/ffmpeg.c | 1 +
>  1 file changed, 1 insertion(+)

will apply

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Whats the most studid thing your enemy could do ? Blow himself up
Whats the most studid thing you could do ? Give up your rights and
freedom because your enemy blew himself up.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190328/62708710/attachment.sig>


More information about the ffmpeg-devel mailing list