codecparsers: jpeg: fix default Huffman tables generation.

Fix build_huffman_table() to correctly fill in the associated HUFFVAL
entries to the default Huffman tables.
This commit is contained in:
Wind Yuan 2013-06-13 13:22:18 +08:00 committed by Tim-Philipp Müller
parent 7e7b4d68f4
commit c83e413656

View file

@ -481,6 +481,7 @@ build_huffman_table (GstJpegHuffmanTable * huf_table,
huf_table->huf_values[i] = e->value;
n++;
}
huf_table->huf_bits[j - 1] = n;
for (; j < G_N_ELEMENTS (huf_table->huf_bits); j++)
huf_table->huf_bits[j] = 0;