diff options
-rw-r--r-- | graphics/video/smk_decoder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/video/smk_decoder.cpp b/graphics/video/smk_decoder.cpp index 3d83bbd8ea..7c8ec9a855 100644 --- a/graphics/video/smk_decoder.cpp +++ b/graphics/video/smk_decoder.cpp @@ -123,6 +123,7 @@ public: uint32 bit = _bs.getBit(); assert(bit); + _tree.reserve(256); decodeTree(0); bit = _bs.getBit(); @@ -227,6 +228,7 @@ BigHuffmanTree::BigHuffmanTree(BitStream &bs) _last[0] = _last[1] = _last[2] = 0xffffffff; + _tree.reserve(256); decodeTree(0, 0); bit = _bs.getBit(); assert(!bit); |