Skip to content

Commit

Permalink
Fix a bug that the last frame is not output
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 3, 2020
1 parent 7c3c2bb commit 337ac96
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.c
Expand Up @@ -632,7 +632,14 @@ int main(int argc, char *argv[])
}

if (settings.last_frame_delay > 0) {
controlgif(gsdata, -1, settings.last_frame_delay / 10, 0, 0);
if (nret != EXIT_FAILURE) {
refresh(&pb, &term);
apply_colormap(&pb, img);
}
delay = settings.last_frame_delay / 10;
if (delay < gif_render_interval)
delay = gif_render_interval;
controlgif(gsdata, -1, delay, 0, 0);
putgif(gsdata, img);
}

Expand Down

0 comments on commit 337ac96

Please sign in to comment.