00001 #ifndef MNT_RTP_MPEG_H 00002 #define MNT_RTP_MPEG_H 00003 00004 #include <stdlib.h> 00005 #include <assert.h> 00006 #include "mnt_rtp.h" 00007 #include "mnt_bit_parser.h" 00008 00021 class MntRTPMPEGHdr { 00022 public: 00023 union { 00024 uint32_t flags_; 00025 }; 00026 }; 00027 00028 00032 class MntRTPMPEGPacket : public MntData 00033 { 00034 public: 00035 00036 MntRTPHdr *rtp_hdr_; 00037 MntRTPMPEGHdr *pl_hdr_; 00038 unsigned char *pl_data_; 00039 int pl_len_; 00041 // You may add additional members here. 00042 00048 MntRTPMPEGPacket(unsigned char *data, int size) 00049 : MntData(data, size) 00050 { 00051 length_ = size; 00052 pl_len_ = size - sizeof(MntRTPMPEGHdr) - sizeof(MntRTPHdr); 00053 rtp_hdr_ = (MntRTPHdr *)data; 00054 pl_hdr_ = (MntRTPMPEGHdr *)(data + sizeof(MntRTPHdr)); 00055 pl_data_ = data + sizeof(MntRTPHdr) + sizeof(MntRTPMPEGHdr); 00056 } 00057 00058 // You may add additional methods here. 00059 }; 00060 00061 #endif