1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refactor RTC video queue, extract RTP video packet

This commit is contained in:
winlin 2020-05-05 08:24:49 +08:00
parent 899dddb624
commit c4b93b8a38
4 changed files with 85 additions and 58 deletions

View file

@ -114,15 +114,8 @@ public:
int padding;
// Decoder helper.
public:
// TODO: FIXME: Move to video decoder queue SrsRtpVideoQueue.
// Helper information for video decoder only.
bool video_is_first_packet;
bool video_is_last_packet;
bool video_is_idr;
// The first byte as nalu type, for video decoder only.
SrsAvcNaluType nalu_type;
// The original payload bytes length.
int nn_original_payload;
// The original bytes for decoder only, we will free it.
char* original_bytes;
// Fast cache for performance.