Explorar o código

Clear before starting parsing.

Keith Maika %!s(int64=2) %!d(string=hai) anos
pai
achega
7b6301d7f3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/shared/gif/utils.js

+ 2 - 1
src/shared/gif/utils.js

@@ -51,8 +51,9 @@ function lzwDecode (minCodeSize, data) {
         dict[eoiCode] = null;
     };
 
-    let code;
+    let code = clearCode;
     let last;
+    clear();
 
     while (true) { // eslint-disable-line no-constant-condition
         last = code;