mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Fix private_impl access for GIF num_loops
This commit is contained in:
1 parent
7d3662ee40
commit
d59eec7936
1 file changed
+2
-1
@@ -272,7 +272,8 @@ const char* play() {
|
||||
if (!seen_num_loops) {
|
||||
seen_num_loops = true;
|
||||
// TODO: provide API for getting num_loops.
|
||||
num_loops_remaining = dec.private_impl.f_num_loops;
|
||||
num_loops_remaining =
|
||||
dec.private_impl.f_seen_num_loops ? dec.private_impl.f_num_loops : 1;
|
||||
}
|
||||
|
||||
bool first_frame = true;
|
||||
|
||||
Reference in new issue
Block a user