Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -88,6 +88,8 @@ static int gif_get_delay(GIFContext *gif, AVPacket *prev, AVPacket *new) · 87 unmodified lines | ||
| 88 | 88 | gif->duration = av_clip_uint16(new->pts - prev->pts); |
| 89 | 89 | else if (!new && gif->last_delay >= 0) |
| 90 | 90 | gif->duration = gif->last_delay; |
| 91 | + else if (prev->duration) | |
| 92 | + gif->duration = prev->duration; | |
| 91 | 93 | |
| 92 | 94 | return gif->duration; |
| 93 | 95 | } |