stil / gif-endec

PHP GIF encoder and decoder
63 stars 16 forks source link

Update Decoder.php #3

Closed kevinruscoe closed 9 years ago

kevinruscoe commented 9 years ago

I'm not 100% sure this is correct, but the Color() class constructor requires RGB values (their defaults are all -1). When a new Color() is instantiated on line 217, there's no args passed, this throws a ErrorException. Setting the values here to -1, -1, -1 correctly instantiates a new Color().

kevinruscoe commented 9 years ago

Obviously another solution would be to set RGB to -1 in the constructor of Color().