• Clément Bœsch's avatar
    lavf/gif: correct the delay after the first frame. · a7c5b7a6
    Clément Bœsch authored
    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.
    a7c5b7a6
Name
Last commit
Last update
..
fate Loading commit data...
filtergraphs Loading commit data...
ref Loading commit data...
Makefile Loading commit data...
audiogen.c Loading commit data...
base64.c Loading commit data...
copycooker.sh Loading commit data...
fate-run.sh Loading commit data...
fate-update.sh Loading commit data...
fate-valgrind.supp Loading commit data...
fate.sh Loading commit data...
ffserver-regression.sh Loading commit data...
ffserver.conf Loading commit data...
ffserver.regression.ref Loading commit data...
lavf-regression.sh Loading commit data...
lavfi-regression.sh Loading commit data...
lena.pnm Loading commit data...
md5.sh Loading commit data...
regression-funcs.sh Loading commit data...
rotozoom.c Loading commit data...
test.ffmeta Loading commit data...
tiny_psnr.c Loading commit data...
tiny_ssim.c Loading commit data...
utils.c Loading commit data...
videogen.c Loading commit data...