Skip to content

Commit

Permalink
Fix order of the frame delays
Browse files Browse the repository at this point in the history
  • Loading branch information
vovan888 committed Jul 8, 2016
1 parent 9dcaecc commit 485d443
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ public int getGifHeight() {
if (!animating) {
break;
}
gifDecoder.advance();
try {
int delay = gifDecoder.getNextDelay();
// Sleep for frame duration minus time already spent on frame decode
Expand All @@ -167,6 +166,7 @@ public int getGifHeight() {
// suppress any exception
// it can be InterruptedException or IllegalArgumentException
}
gifDecoder.advance();
}
} while (animating);
if (animationStopCallback != null) {
Expand Down

0 comments on commit 485d443

Please sign in to comment.