mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
Merge branch 'develop' into feature/rtc
This commit is contained in:
commit
6f7ebbdc5f
3 changed files with 16 additions and 12 deletions
|
@ -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()
|
||||
|
|
|
@ -1173,7 +1173,7 @@ public:
|
|||
public:
|
||||
virtual uint32_t entry_count();
|
||||
virtual SrsMp4DataEntryBox* entry_at(int index);
|
||||
virtual SrsMp4DataReferenceBox* append2(SrsMp4DataEntryBox* v);
|
||||
virtual void append(SrsMp4Box* v);
|
||||
protected:
|
||||
virtual int nb_header();
|
||||
virtual srs_error_t encode_header(SrsBuffer* buf);
|
||||
|
@ -1520,7 +1520,7 @@ public:
|
|||
public:
|
||||
virtual uint32_t entry_count();
|
||||
virtual SrsMp4SampleEntry* entrie_at(int index);
|
||||
virtual SrsMp4SampleDescriptionBox* append2(SrsMp4SampleEntry* v);
|
||||
virtual void append(SrsMp4Box* v);
|
||||
protected:
|
||||
virtual int nb_header();
|
||||
virtual srs_error_t encode_header(SrsBuffer* buf);
|
||||
|
|
|
@ -4865,7 +4865,7 @@ VOID TEST(KernelMP4Test, CoverMP4CodecSingleFrame)
|
|||
MockSrsFileReader fr((const char*)f.data(), f.filesize());
|
||||
SrsMp4Decoder dec; HELPER_EXPECT_SUCCESS(dec.initialize(&fr));
|
||||
|
||||
SrsMp4HandlerType ht; uint16_t ft, ct; uint32_t dts, pts, nb_sample; uint8_t* sample;
|
||||
SrsMp4HandlerType ht; uint16_t ft, ct; uint32_t dts, pts, nb_sample; uint8_t* sample = NULL;
|
||||
|
||||
// Sequence header.
|
||||
HELPER_EXPECT_SUCCESS(dec.read_sample(&ht, &ft, &ct, &dts, &pts, &sample, &nb_sample));
|
||||
|
@ -4980,7 +4980,7 @@ VOID TEST(KernelMP4Test, CoverMP4MultipleVideos)
|
|||
MockSrsFileReader fr((const char*)f.data(), f.filesize());
|
||||
SrsMp4Decoder dec; HELPER_EXPECT_SUCCESS(dec.initialize(&fr));
|
||||
|
||||
SrsMp4HandlerType ht; uint16_t ft, ct; uint32_t dts, pts, nb_sample; uint8_t* sample;
|
||||
SrsMp4HandlerType ht; uint16_t ft, ct; uint32_t dts, pts, nb_sample; uint8_t* sample = NULL;
|
||||
|
||||
// Sequence header.
|
||||
HELPER_EXPECT_SUCCESS(dec.read_sample(&ht, &ft, &ct, &dts, &pts, &sample, &nb_sample));
|
||||
|
@ -5078,7 +5078,7 @@ VOID TEST(KernelMP4Test, CoverMP4MultipleCTTs)
|
|||
MockSrsFileReader fr((const char*)f.data(), f.filesize());
|
||||
SrsMp4Decoder dec; HELPER_EXPECT_SUCCESS(dec.initialize(&fr));
|
||||
|
||||
SrsMp4HandlerType ht; uint16_t ft, ct; uint32_t dts, pts, nb_sample; uint8_t* sample;
|
||||
SrsMp4HandlerType ht; uint16_t ft, ct; uint32_t dts, pts, nb_sample; uint8_t* sample = NULL;
|
||||
|
||||
// Sequence header.
|
||||
HELPER_EXPECT_SUCCESS(dec.read_sample(&ht, &ft, &ct, &dts, &pts, &sample, &nb_sample));
|
||||
|
@ -5190,7 +5190,7 @@ VOID TEST(KernelMP4Test, CoverMP4MultipleAVs)
|
|||
MockSrsFileReader fr((const char*)f.data(), f.filesize());
|
||||
SrsMp4Decoder dec; HELPER_EXPECT_SUCCESS(dec.initialize(&fr));
|
||||
|
||||
SrsMp4HandlerType ht; uint16_t ft, ct; uint32_t dts, pts, nb_sample; uint8_t* sample;
|
||||
SrsMp4HandlerType ht; uint16_t ft, ct; uint32_t dts, pts, nb_sample; uint8_t* sample = NULL;
|
||||
|
||||
// Sequence header.
|
||||
HELPER_EXPECT_SUCCESS(dec.read_sample(&ht, &ft, &ct, &dts, &pts, &sample, &nb_sample));
|
||||
|
|
Loading…
Reference in a new issue