FLAC support:
- FLAC container input and output support - FLAC container analyser - FLAC codec support in EBML input and output
This commit is contained in:
parent
0f692233e8
commit
a7183aedc5
17 changed files with 948 additions and 1 deletions
|
@ -1851,9 +1851,13 @@ namespace DTSC{
|
|||
setInit(trackIdx, init.data(), init.size());
|
||||
}
|
||||
|
||||
/// Sets the given track's init data.setvod
|
||||
/// Sets the given track's init data.
|
||||
void Meta::setInit(size_t trackIdx, const char *init, size_t initLen){
|
||||
DTSC::Track &t = tracks.at(trackIdx);
|
||||
if (initLen > t.trackInitField.size){
|
||||
FAIL_MSG("Attempting to store %zu bytes of init data, but we only have room for %" PRIu32 " bytes!", initLen, t.trackInitField.size);
|
||||
initLen = t.trackInitField.size;
|
||||
}
|
||||
char *_init = t.track.getPointer(t.trackInitField);
|
||||
Bit::htobs(_init, initLen);
|
||||
memcpy(_init + 2, init, initLen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue