Skip to content

Commit caae789

Browse files
committed
2.0.4: Remove incorrect change of disposal method
1 parent a79e1dc commit caae789

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,6 @@ impl Decoder {
468468
}
469469
};
470470
parsed_frame.gcd.disposal_method = shr_or((packed_field & 0b0001_1100) as u32, 2, 0);
471-
if parsed_frame.gcd.disposal_method == 0 {
472-
parsed_frame.gcd.disposal_method = 1; // elect to keep old image if discretionary
473-
}
474471
parsed_frame.gcd.user_input_flag = (packed_field & 0b0000_0010) != 0;
475472
parsed_frame.gcd.transparent_color_flag = (packed_field & 0b0000_0001) != 0;
476473
Self::increment_offset(offset, 1);

0 commit comments

Comments
 (0)