diff options
author | Wind Yuan <feng.yuan@intel.com> | 2013-06-13 13:22:18 +0800 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-06-21 11:28:38 +0100 |
commit | c83e413656f9c1e9918cfa00c53234327ac83071 (patch) | |
tree | 80e50fba28916617e7fd169bd3421f0d12794446 /gst-libs | |
parent | 7e7b4d68f4081f6e7e3bf851d4a041179b594ff9 (diff) | |
download | gstreamer-plugins-bad-c83e413656f9c1e9918cfa00c53234327ac83071.tar.gz |
codecparsers: jpeg: fix default Huffman tables generation.
Fix build_huffman_table() to correctly fill in the associated HUFFVAL
entries to the default Huffman tables.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/codecparsers/gstjpegparser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/codecparsers/gstjpegparser.c b/gst-libs/gst/codecparsers/gstjpegparser.c index 80de3fff0..8ee2d449e 100644 --- a/gst-libs/gst/codecparsers/gstjpegparser.c +++ b/gst-libs/gst/codecparsers/gstjpegparser.c @@ -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; |