Skip to main content

gif_sequence

Function gif_sequence 

Source
fn gif_sequence(bytes: &[u8]) -> Option<bool>
Expand description

Whether a GIF holds more than one image descriptor.

Frame count is written nowhere in the format, so the blocks are walked until a second image is found or the trailer ends them. Every block clears at least its own introducer and a terminating sub-block, so the offset rises on every pass and a walk that runs off the picture ends.