mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-03 08:57:32 +08:00
完善MediaRecord 类
This commit is contained in:
@@ -90,7 +90,8 @@ void RtspToRtmpMediaSource::makeVideoConfigPkt() {
|
||||
}
|
||||
void RtspToRtmpMediaSource::onGetH264(const H264Frame& frame) {
|
||||
if(_pRecorder){
|
||||
_pRecorder->inputH264((char *) frame.data(), frame.size(), frame.timeStamp, frame.type);
|
||||
//todo(xzl) 修复此处
|
||||
// _pRecorder->inputH264((char *) frame.data(), frame.size(), frame.timeStamp, frame.type);
|
||||
}
|
||||
uint8_t nal_type = frame.data()[4] & 0x1F;
|
||||
int8_t flags = 7; //h.264
|
||||
@@ -124,7 +125,8 @@ void RtspToRtmpMediaSource::onGetH264(const H264Frame& frame) {
|
||||
}
|
||||
void RtspToRtmpMediaSource::onGetAAC(const AACFrame& frame) {
|
||||
if(_pRecorder){
|
||||
_pRecorder->inputAAC((char *) frame.buffer, frame.aac_frame_length, frame.timeStamp);
|
||||
//todo(xzl) 修复此处
|
||||
// _pRecorder->inputAAC((char *) frame.buffer, frame.aac_frame_length, frame.timeStamp);
|
||||
}
|
||||
|
||||
RtmpPacket::Ptr rtmpPkt(new RtmpPacket);
|
||||
|
||||
Reference in New Issue
Block a user