mirror of
https://github.com/ossrs/srs.git
synced 2025-02-14 12:21:55 +00:00
MP4: Fix warnings
This commit is contained in:
parent
6e922b9589
commit
721173e6af
2 changed files with 10 additions and 8 deletions
|
@ -2744,10 +2744,10 @@ SrsMp4DataEntryBox* SrsMp4DataReferenceBox::entry_at(int index)
|
||||||
return entries.at(index);
|
return entries.at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
SrsMp4DataReferenceBox* SrsMp4DataReferenceBox::append(SrsMp4DataEntryBox* v)
|
// Note that box must be SrsMp4DataEntryBox*
|
||||||
|
void SrsMp4DataReferenceBox::append(SrsMp4Box* box)
|
||||||
{
|
{
|
||||||
entries.push_back(v);
|
entries.push_back((SrsMp4DataEntryBox*)box);
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int SrsMp4DataReferenceBox::nb_header()
|
int SrsMp4DataReferenceBox::nb_header()
|
||||||
|
@ -3765,10 +3765,10 @@ SrsMp4SampleEntry* SrsMp4SampleDescriptionBox::entrie_at(int index)
|
||||||
return entries.at(index);
|
return entries.at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
SrsMp4SampleDescriptionBox* SrsMp4SampleDescriptionBox::append(SrsMp4SampleEntry* v)
|
// Note that box must be SrsMp4SampleEntry*
|
||||||
|
void SrsMp4SampleDescriptionBox::append(SrsMp4Box* box)
|
||||||
{
|
{
|
||||||
entries.push_back(v);
|
entries.push_back((SrsMp4SampleEntry*)box);
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int SrsMp4SampleDescriptionBox::nb_header()
|
int SrsMp4SampleDescriptionBox::nb_header()
|
||||||
|
|
|
@ -1173,7 +1173,8 @@ public:
|
||||||
public:
|
public:
|
||||||
virtual uint32_t entry_count();
|
virtual uint32_t entry_count();
|
||||||
virtual SrsMp4DataEntryBox* entry_at(int index);
|
virtual SrsMp4DataEntryBox* entry_at(int index);
|
||||||
virtual SrsMp4DataReferenceBox* append(SrsMp4DataEntryBox* v);
|
// Note that box must be SrsMp4DataEntryBox*
|
||||||
|
virtual void append(SrsMp4Box* box);
|
||||||
protected:
|
protected:
|
||||||
virtual int nb_header();
|
virtual int nb_header();
|
||||||
virtual srs_error_t encode_header(SrsBuffer* buf);
|
virtual srs_error_t encode_header(SrsBuffer* buf);
|
||||||
|
@ -1520,7 +1521,8 @@ public:
|
||||||
public:
|
public:
|
||||||
virtual uint32_t entry_count();
|
virtual uint32_t entry_count();
|
||||||
virtual SrsMp4SampleEntry* entrie_at(int index);
|
virtual SrsMp4SampleEntry* entrie_at(int index);
|
||||||
virtual SrsMp4SampleDescriptionBox* append(SrsMp4SampleEntry* v);
|
// Note that box must be SrsMp4SampleEntry*
|
||||||
|
virtual void append(SrsMp4Box* box);
|
||||||
protected:
|
protected:
|
||||||
virtual int nb_header();
|
virtual int nb_header();
|
||||||
virtual srs_error_t encode_header(SrsBuffer* buf);
|
virtual srs_error_t encode_header(SrsBuffer* buf);
|
||||||
|
|
Loading…
Reference in a new issue