Commit cdc05e71 authored by Adam Mills's avatar Adam Mills
Browse files

Reducing the RAM size by modifying the huffman table allocation

parent a326aafa
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ static void CompleteTables( LCLDDecoder *psLCLDDecoder, int32_t n, TableList *pt

    iMaxTables = 1 << iReadLength;
    psLCLDDecoder->c_apauiHuffDecTable_RAM[n] =
        malloc( iTablesCreated * iMaxTables * sizeof( uint32_t * ) );
        malloc( iTablesCreated * iMaxTables * sizeof( uint32_t ) );

    poNode = ptable_list->poOrderedTop;
    for ( j = 0; j < iTablesCreated; j++ )