完成AAC RTMP编解码类

This commit is contained in:
xiongziliang
2018-10-24 14:21:59 +08:00
parent 6c9d50b04b
commit f4bce611ef
10 changed files with 209 additions and 21 deletions

View File

@@ -126,7 +126,7 @@ void RtspToRtmpMediaSource::onGetH264(const H264Frame& frame) {
rtmpPkt->typeId = MSG_VIDEO;
m_pRtmpSrc->onGetMedia(rtmpPkt);
}
void RtspToRtmpMediaSource::onGetAdts(const AACFrame& frame) {
void RtspToRtmpMediaSource::onGetAAC(const AACFrame& frame) {
if(m_pRecorder){
m_pRecorder->inputAAC((char *) frame.buffer, frame.aac_frame_length, frame.timeStamp);
}