修复aac adts头大于7个字节时的兼容性问题

This commit is contained in:
xiongziliang
2022-04-16 14:13:55 +08:00
parent 5144b84ee7
commit 24472ee346
2 changed files with 5 additions and 1 deletions

View File

@@ -138,7 +138,7 @@ void AACRtpDecoder::flushData() {
_frame->_prefix_size = ADTS_HEADER_LEN;
} else {
//没有adts头则插入adts头
char adts_header[32] = {0};
char adts_header[128] = {0};
auto size = dumpAacConfig(_aac_cfg, _frame->_buffer.size(), (uint8_t *) adts_header, sizeof(adts_header));
if (size > 0) {
//插入adts头