aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libschroedinger.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-19 04:02:12 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-19 12:02:19 +0200
commita7c5b7a6764b5170515183716943a7a463161cfc (patch)
tree007b829ea423aac0ed8871283e6ff452c3667d86 /libavcodec/libschroedinger.c
parentb63f7b3ac7b95032ae8c3e074f26b6c6158582da (diff)
downloadffmpeg-a7c5b7a6764b5170515183716943a7a463161cfc.tar.gz
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.
Diffstat (limited to 'libavcodec/libschroedinger.c')
0 files changed, 0 insertions, 0 deletions