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

Fix utest failed.

This commit is contained in:
winlin 2020-04-05 21:22:50 +08:00
parent 10d5f99d3d
commit f228b3809a
3 changed files with 16 additions and 12 deletions

View file

@ -2744,10 +2744,12 @@ SrsMp4DataEntryBox* SrsMp4DataReferenceBox::entry_at(int index)
return entries.at(index);
}
SrsMp4DataReferenceBox* SrsMp4DataReferenceBox::append2(SrsMp4DataEntryBox* v)
void SrsMp4DataReferenceBox::append(SrsMp4Box* v)
{
entries.push_back(v);
return this;
SrsMp4DataEntryBox* pv = dynamic_cast<SrsMp4DataEntryBox*>(v);
if (pv) {
entries.push_back(pv);
}
}
int SrsMp4DataReferenceBox::nb_header()
@ -3765,10 +3767,12 @@ SrsMp4SampleEntry* SrsMp4SampleDescriptionBox::entrie_at(int index)
return entries.at(index);
}
SrsMp4SampleDescriptionBox* SrsMp4SampleDescriptionBox::append2(SrsMp4SampleEntry* v)
void SrsMp4SampleDescriptionBox::append(SrsMp4Box* v)
{
entries.push_back(v);
return this;
SrsMp4SampleEntry* pv = dynamic_cast<SrsMp4SampleEntry*>(v);
if (pv) {
entries.push_back(pv);
}
}
int SrsMp4SampleDescriptionBox::nb_header()