mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
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 0f017b56f3
)
Change-Id: I4da795623c71501e2fa426e8fba8fb2ffcbab58a
This commit is contained in:
parent
bbbc524fb4
commit
d34e8e3d18
@ -181,6 +181,7 @@ static void decode_callback(int what) {
|
|||||||
if (WebPDemuxGetFrame(kParams.dmux, 1, curr)) {
|
if (WebPDemuxGetFrame(kParams.dmux, 1, curr)) {
|
||||||
--kParams.loop_count;
|
--kParams.loop_count;
|
||||||
kParams.done = (kParams.loop_count == 0);
|
kParams.done = (kParams.loop_count == 0);
|
||||||
|
if (kParams.done) return;
|
||||||
} else {
|
} else {
|
||||||
kParams.decoding_error = 1;
|
kParams.decoding_error = 1;
|
||||||
kParams.done = 1;
|
kParams.done = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user