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:
parent
a695afb368
commit
719c0ae85b
4 changed files with 32 additions and 19 deletions
|
@ -488,6 +488,13 @@ SrsVideoFrame::~SrsVideoFrame()
|
|||
{
|
||||
}
|
||||
|
||||
srs_error_t SrsVideoFrame::initialize(SrsCodecConfig* c)
|
||||
{
|
||||
first_nalu_type = SrsAvcNaluTypeForbidden;
|
||||
has_idr = has_sps_pps = has_aud = false;
|
||||
return SrsFrame::initialize(c);
|
||||
}
|
||||
|
||||
srs_error_t SrsVideoFrame::add_sample(char* bytes, int size)
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue