ref: 491c2bb20b6b1df7da9132ee24f0bb2f4545767d
parent: 35fa4b6cf5b728cde8257605e4a55bf21e2bdda4
author: Mans Rullgard <mans@mansr.com>
date: Sat Apr 28 15:08:15 EDT 2018
hcom: report input file length The header specifies the number of samples in the file. Return this value when opening.
--- a/src/hcom.c
+++ b/src/hcom.c
@@ -147,6 +147,7 @@
ft->encoding.bits_per_sample = 8;
ft->signal.rate = 22050 / divisor;
ft->signal.channels = 1;
+ ft->signal.length = huffcount;
/* Allocate memory for the dictionary */
p->dictionary = lsx_malloc(511 * sizeof(dictent));