修复添加aac静音前缀未设置的问题

This commit is contained in:
xiongziliang 2020-08-15 09:51:31 +08:00
parent 678e011afb
commit 0456cee336
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 5d3253d8950c33d43c040b22a0c9963236f2db4d Subproject commit abd548345e5eeef5558439aa786391408a674b17

View File

@ -197,7 +197,7 @@ public:
auto audio_idx = frame->dts() / MUTE_ADTS_DATA_MS; auto audio_idx = frame->dts() / MUTE_ADTS_DATA_MS;
if(_audio_idx != audio_idx){ if(_audio_idx != audio_idx){
_audio_idx = audio_idx; _audio_idx = audio_idx;
auto aacFrame = std::make_shared<FrameFromStaticPtr>(CodecAAC, (char *)MUTE_ADTS_DATA, MUTE_ADTS_DATA_LEN, _audio_idx * MUTE_ADTS_DATA_MS); auto aacFrame = std::make_shared<FrameFromStaticPtr>(CodecAAC, (char *)MUTE_ADTS_DATA, MUTE_ADTS_DATA_LEN, _audio_idx * MUTE_ADTS_DATA_MS, 0 ,ADTS_HEADER_LEN);
FrameDispatcher::inputFrame(aacFrame); FrameDispatcher::inputFrame(aacFrame);
} }
} }