mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Tweak gif restart_frame args
This commit is contained in:
1 parent
708dd7cf87
commit
a3269e160e
4 files changed
+53
-28
No files matched your search
+4
-3
@@ -910,7 +910,7 @@ bool do_test_wuffs_gif_io_position(bool chunked) {
|
||||
|
||||
// If we're chunked, we've discarded some source bytes due to an earlier
|
||||
// wuffs_base__io_buffer__compact call. We won't bother testing
|
||||
// wuffs_gif__decoder__reset_before in that case.
|
||||
// wuffs_gif__decoder__restart_frame in that case.
|
||||
if (chunked) {
|
||||
return true;
|
||||
}
|
||||
@@ -918,9 +918,10 @@ bool do_test_wuffs_gif_io_position(bool chunked) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
src.ri = pos_wants[i];
|
||||
|
||||
z = wuffs_gif__decoder__reset_before(&dec, &fcs[i]);
|
||||
z = wuffs_gif__decoder__restart_frame(
|
||||
&dec, i, wuffs_base__frame_config__io_position(&fcs[i]));
|
||||
if (z) {
|
||||
FAIL("reset_before #%d: \"%s\"", i, z);
|
||||
FAIL("restart_frame #%d: \"%s\"", i, z);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user