1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
Clément Bœsch a7c5b7a676 lavf/gif: correct the delay after the first frame.
To define accurately the delay between two frames, it is necessary to
have both available. Before this commit, the first frame had a delay of
0; while in practice the problem is not visible in most situation, it is
problematic with low frame rate and large scene change.

This commit notably fixes output generated with commands such as:

  ffmpeg -i big_buck_bunny_1080p_h264.mov
     -vf "select='gt(scene,0.4)',scale=320:-1,setpts=N/TB"
     -frames:v 5 -y out.gif

Also, to avoid odd loop delays, the N-1 delay is duplicated for the last
frame.
2013-04-19 12:02:19 +02:00
..
2013-01-03 19:35:02 +00:00
asf
ast
au
avi
bmp
caf
dpx
2013-03-15 21:09:36 +01:00
2013-01-08 18:47:09 +00:00
ffm
flm
gxf
2013-01-08 18:47:09 +00:00
2013-01-08 18:47:09 +00:00
jpg
mpg
2013-01-08 18:47:09 +00:00
mxf
2013-01-08 18:47:09 +00:00
nut
ogg
pam
pcx
pgm
png
ppm
rm
rso
sgi
sox
swf
tga
ts
voc
w64
wav
wtv
xbm
xwd