xw33421 / as3gif

Automatically exported from code.google.com/p/as3gif
0 stars 0 forks source link

gifDecoder doesn't read loops correctly #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. encode animated gif with repeat count e.g. 3
2. play with gifplayer

What is the expected output? What do you see instead?
The gif keeps on playing. The decoder reads 1 as repeat count instead of the 
actual number

What version of the product are you using? On what operating system?
decoder 0.1 / OS X

Please provide any additional information below.
fix in class gidDecoder line 650: function readContents

THIS: 
--------
var app:String = '';
for (var i:int = 0; i < 11; i++) {
 app += block[int(i)];                          
} 
if (app == "NETSCAPE2.0")  {
  readNetscapeExt();
}

SHOULD BE: 
-----------
var app:String = block.readUTFBytes(11);
if (app == "NETSCAPE2.0")  {
 readNetscapeExt();
}

Original issue reported on code.google.com by geoff...@gmail.com on 14 Dec 2011 at 9:13