X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fgif.rs;fp=nihav-commonfmt%2Fsrc%2Fcodecs%2Fgif.rs;h=a5b91d3b2ff9464fd43c73c74230547d26b7dec3;hp=ccc21c6061a5d7a926dd9a3b835c38be2639cc59;hb=fcdf9a8a5632dcdd6bac3068e7eb2098d9e13246;hpb=e31eabc9d7a774e2234835f4deffaa8e5991cb97 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)