History

hcom: report input file length

The header specifies the number of samples in the file. Return this value when opening.

Mans Rullgard committed 8 years ago

Commit 491c2bb1 parent 35fa4b61 file · +1 −0Browse files

Unified · Split

src/hcom.c+1−0
@@ -147,6 +147,7 @@ static int startread(sox_format_t * ft) · 146 unmodified lines
147 ft->encoding.bits_per_sample = 8;147 ft->encoding.bits_per_sample = 8;
148 ft->signal.rate = 22050 / divisor;148 ft->signal.rate = 22050 / divisor;
149 ft->signal.channels = 1;149 ft->signal.channels = 1;
150 ft->signal.length = huffcount;
150 151
151 /* Allocate memory for the dictionary */152 /* Allocate memory for the dictionary */
152 p->dictionary = lsx_malloc(511 * sizeof(dictent));153 p->dictionary = lsx_malloc(511 * sizeof(dictent));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t