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

For #307, refactor code, parse B-frame by sample.

This commit is contained in:
winlin 2020-04-11 15:11:42 +08:00
parent 719c0ae85b
commit 5b9cb7dc3f
3 changed files with 51 additions and 22 deletions

View file

@ -534,9 +534,14 @@ public:
int size;
// The ptr of unit, user must manage it.
char* bytes;
// Whether is B frame.
bool bframe;
public:
SrsSample();
virtual ~SrsSample();
public:
// If we need to know whether sample is bframe, we have to parse the NALU payload.
virtual srs_error_t parse_bframe();
};
/**