mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/gif: use last frame duration
This commit is contained in:
parent
bd9d984c11
commit
ff72256235
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue