Fix Malformed AAC bitstream detected for hls version 7 + array merge

This commit is contained in:
Jan Stabenow 2022-06-30 19:05:26 +02:00
parent faa2cc1af2
commit cb2d486888
No known key found for this signature in database
GPG Key ID: 9C22DD65A9AAF133

View File

@ -1524,6 +1524,10 @@ class Restreamer {
['method', 'PUT'],
];
case 7:
// fix Malformed AAC bitstream detected for hls version 7
if (control.hls.version === 7 && output.options.includes('-codec:a') && output.options.includes('copy')) {
output.options.push('-bsf:a', 'aac_adtstoasc');
}
return [
['f', 'hls'],
['start_number', '0'],
@ -1589,7 +1593,7 @@ class Restreamer {
// WARN: It is a magic function. Returns 'Invalid process config' and the process.id is lost (Core v16.8.0)
// output.address = hls_params;
} else {
output.options.concat(hls_params);
output.options.push(...hls_params);
}
proc.output.push(output);