Skip to content

Commit

Permalink
Change consistency check default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroicKatora committed Sep 25, 2020
1 parent 0d45995 commit 2ffc53a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl DecodeOptions {
DecodeOptions {
memory_limit: MemoryLimit(50_000_000), // 50 MB
color_output: ColorOutput::Indexed,
check_frame_consistency: true,
check_frame_consistency: false,
}
}

Expand All @@ -80,12 +80,14 @@ impl DecodeOptions {

/// Configure if frames must be within the screen descriptor.
///
/// The default is `true`.
/// The default is `false`.
///
/// When turned on, all frame descriptors being read must fit within the screen descriptor or
/// otherwise an error is returned and the stream left in an unspecified state.
///
/// When turned off, frames may be arbitrarily larger or offset in relation to the screen.
/// When turned off, frames may be arbitrarily larger or offset in relation to the screen. Many
/// other decoder libraries handle this in highly divergent ways. This moves all checks to the
/// caller, for example to emulate a specific style.
pub fn check_frame_consistency(&mut self, check: bool) {
self.check_frame_consistency = check;
}
Expand Down

0 comments on commit 2ffc53a

Please sign in to comment.