rtpdec: Split mpegts parsing to a normal depacketizer
This gets rid of a number of special cases from the common rtpdec code. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
d5bb8cc2dd
commit
2326558d52
6 changed files with 131 additions and 55 deletions
|
@ -160,9 +160,6 @@ struct RTPDemuxContext {
|
|||
int64_t unwrapped_timestamp;
|
||||
int64_t range_start_offset;
|
||||
int max_payload_size;
|
||||
struct MpegTSContext *ts; /* only used for MP2T payloads */
|
||||
int read_buf_index;
|
||||
int read_buf_size;
|
||||
/* used to send back RTCP RR */
|
||||
char hostname[256];
|
||||
|
||||
|
@ -192,9 +189,6 @@ struct RTPDemuxContext {
|
|||
unsigned int last_octet_count;
|
||||
int64_t last_feedback_time;
|
||||
|
||||
/* buffer for partially parsed packets */
|
||||
uint8_t buf[RTP_MAX_PACKET_LENGTH];
|
||||
|
||||
/* dynamic payload stuff */
|
||||
const RTPDynamicProtocolHandler *handler;
|
||||
PayloadContext *dynamic_protocol_context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue