You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/gif: use last frame duration
This commit is contained in:
@@ -88,6 +88,8 @@ static int gif_get_delay(GIFContext *gif, AVPacket *prev, AVPacket *new)
|
||||
gif->duration = av_clip_uint16(new->pts - prev->pts);
|
||||
else if (!new && gif->last_delay >= 0)
|
||||
gif->duration = gif->last_delay;
|
||||
else if (prev->duration)
|
||||
gif->duration = prev->duration;
|
||||
|
||||
return gif->duration;
|
||||
}
|
||||
|
Reference in New Issue
Block a user