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

For #307, refactor SPS/PPS only before IDR, not each FUA

This commit is contained in:
winlin 2020-04-11 13:10:27 +08:00
parent a695afb368
commit 719c0ae85b
4 changed files with 32 additions and 19 deletions

View file

@ -703,6 +703,8 @@ public:
SrsVideoFrame();
virtual ~SrsVideoFrame();
public:
// Initialize the frame, to parse sampels.
virtual srs_error_t initialize(SrsCodecConfig* c);
// Add the sample without ANNEXB or IBMF header, or RAW AAC or MP3 data.
virtual srs_error_t add_sample(char* bytes, int size);
public: