mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue