mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 12:45:35 +08:00
[fix] fix h264 rtp packet packetization and depacketization
This commit is contained in:
31
src/rtp/rtp_packet/rtp_packet_h264.h
Normal file
31
src/rtp/rtp_packet/rtp_packet_h264.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* @Author: DI JUNKUN
|
||||
* @Date: 2025-01-23
|
||||
* Copyright (c) 2025 by DI JUNKUN, All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifndef _RTP_PACKET_H264_H_
|
||||
#define _RTP_PACKET_H264_H_
|
||||
|
||||
#include "rtp_packet.h"
|
||||
|
||||
class RtpPacketH264 : public RtpPacket {
|
||||
public:
|
||||
RtpPacketH264();
|
||||
virtual ~RtpPacketH264();
|
||||
|
||||
public:
|
||||
bool GetFrameHeaderInfo();
|
||||
// NAL
|
||||
rtp::NAL_UNIT_TYPE NalUnitType() {
|
||||
return rtp::NAL_UNIT_TYPE(fu_indicator_.nal_unit_type);
|
||||
}
|
||||
bool FuAStart() { return fu_header_.start; }
|
||||
bool FuAEnd() { return fu_header_.end; }
|
||||
|
||||
private:
|
||||
rtp::FU_INDICATOR fu_indicator_;
|
||||
rtp::FU_HEADER fu_header_;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user