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:
parent
719c0ae85b
commit
5b9cb7dc3f
3 changed files with 51 additions and 22 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue