aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2023-11-11 12:06:13 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2023-11-11 12:06:13 +0100
commitfcdf9a8a5632dcdd6bac3068e7eb2098d9e13246 (patch)
tree22ac6990b1b80e667fff263b47390a425ad4afb3
parente31eabc9d7a774e2234835f4deffaa8e5991cb97 (diff)
downloadnihav-fcdf9a8a5632dcdd6bac3068e7eb2098d9e13246.tar.gz
gifdec: fix transparent frame decoding
-rw-r--r--nihav-commonfmt/src/codecs/gif.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/nihav-commonfmt/src/codecs/gif.rs b/nihav-commonfmt/src/codecs/gif.rs
index ccc21c6..a5b91d3 100644
--- a/nihav-commonfmt/src/codecs/gif.rs
+++ b/nihav-commonfmt/src/codecs/gif.rs
@@ -249,10 +249,9 @@ impl NADecoder for GIFDecoder {
.zip(self.dbuf.chunks_exact(width)) {
for (dst, &src) in dline[left..][..width].iter_mut().zip(sline.iter()) {
if src != tpix {
- *dst = tpix;
+ *dst = src;
}
}
- dline[left..][..width].copy_from_slice(sline);
}
} else {
for (dline, sline) in self.frame.chunks_exact_mut(self.width).skip(top)