diff --git a/examples/vwebp.c b/examples/vwebp.c index cc64dd56..fe932ec3 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;