/*
 * BDSup2Sub++ (C) 2012 Adam T.
 * Based on code from BDSup2Sub by Copyright 2009 Volker Oth (0xdeadbeef)
 * and Copyright 2012 Miklos Juhasz (mjuhasz)
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef PALETTEINFO_H
#define PALETTEINFO_H

class PaletteInfo
{
public:
    PaletteInfo();
    PaletteInfo(const PaletteInfo* other);
    PaletteInfo(const PaletteInfo& other);

    int paletteOffset() { return offset; }
    void setPaletteOffset(int paletteOffset) { offset = paletteOffset; }
    int paletteSize() { return size; }
    void setPaletteSize(int paletteSize) { size = paletteSize; }

private:
    int offset = -1;
    int size = -1;
};

#endif // PALETTEINFO_H

/*
 * BDSup2Sub++ (C) 2012 Adam T.
 * Based on code from BDSup2Sub by Copyright 2009 Volker Oth (0xdeadbeef)
 * and Copyright 2012 Miklos Juhasz (mjuhasz)
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef PALETTEINFO_H
#define PALETTEINFO_H

class PaletteInfo
{
public:
    PaletteInfo();
    PaletteInfo(const PaletteInfo* other);
    PaletteInfo(const PaletteInfo& other);

    int paletteOffset() { return offset; }
    void setPaletteOffset(int paletteOffset) { offset = paletteOffset; }
    int paletteSize() { return size; }
    void setPaletteSize(int paletteSize) { size = paletteSize; }

private:
    int offset = 0;
    int size = 0;
};

#endif // PALETTEINFO_H

--- 
+++ 
@@ -33,8 +33,8 @@
     void setPaletteSize(int paletteSize) { size = paletteSize; }
 
 private:
-    int offset = 0;
-    int size = 0;
+    int offset = -1;
+    int size = -1;
 };
 
 #endif // PALETTEINFO_H
Change default values to -1.
