[FFmpeg-devel] [PATCH] lavf/gif: correct the delay after the first frame.

Clément Bœsch ubitux at gmail.com
Fri Apr 19 12:18:27 CEST 2013


On Fri, Apr 19, 2013 at 09:05:58AM +0000, Paul B Mahol wrote:
> On 4/19/13, Clement Boesch <ubitux at gmail.com> wrote:
> > 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.
> > ---
> >  libavformat/gif.c  | 38 +++++++++++++++++++++++++++++++++-----
> >  tests/ref/lavf/gif |  4 ++--
> >  2 files changed, 35 insertions(+), 7 deletions(-)
> >
> 
> ok if works/tested

Thanks, applied.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130419/b7fbd3cb/attachment.asc>


More information about the ffmpeg-devel mailing list