Merge "vwebp/animation: display last frame on end-of-loop"

This commit is contained in:
pascal massimino 2015-02-02 23:03:22 -08:00 committed by Gerrit Code Review
commit e96170fe5c

View File

@ -181,6 +181,7 @@ static void decode_callback(int what) {
if (WebPDemuxGetFrame(kParams.dmux, 1, curr)) {
--kParams.loop_count;
kParams.done = (kParams.loop_count == 0);
if (kParams.done) return;
} else {
kParams.decoding_error = 1;
kParams.done = 1;