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:
parent
7e7b4d68f4
commit
c83e413656
@ -481,6 +481,7 @@ build_huffman_table (GstJpegHuffmanTable * huf_table,
|
|||||||
huf_table->huf_values[i] = e->value;
|
huf_table->huf_values[i] = e->value;
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
huf_table->huf_bits[j - 1] = n;
|
||||||
|
|
||||||
for (; j < G_N_ELEMENTS (huf_table->huf_bits); j++)
|
for (; j < G_N_ELEMENTS (huf_table->huf_bits); j++)
|
||||||
huf_table->huf_bits[j] = 0;
|
huf_table->huf_bits[j] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user