diff options
author | James Zern <jzern@google.com> | 2015-02-02 20:05:54 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2015-03-03 17:53:45 -0800 |
commit | d34e8e3d18645e1ca507b898b1412aa809878cf9 (patch) | |
tree | 662ea9dc4cfcf9185e9c28213c9dffe440abcc13 | |
parent | bbbc524fb4a950530030708e3499281e4903b4ac (diff) | |
download | libwebp-d34e8e3d18645e1ca507b898b1412aa809878cf9.tar.gz |
vwebp/animation: display last frame on end-of-loop
previously the first frame would be redisplayed, which might be
unexpected if the final frame was meant to be a composite, for example.
(cherry picked from commit 0f017b56f3995cc7439bd62b0980eb1cc56c856e)
Change-Id: I4da795623c71501e2fa426e8fba8fb2ffcbab58a
-rw-r--r-- | examples/vwebp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/vwebp.c b/examples/vwebp.c index c1c3de3a..485e7b34 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -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; |