mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Improve test coverage for mp4 decoder
This commit is contained in:
parent
7597a956ed
commit
c3e0dcfa9e
2 changed files with 29 additions and 3 deletions
|
@ -4791,10 +4791,10 @@ srs_error_t SrsMp4SampleManager::load(SrsMp4MovieBox* moov)
|
|||
|
||||
SrsMp4Sample* SrsMp4SampleManager::at(uint32_t index)
|
||||
{
|
||||
if (index >= samples.size() - 1) {
|
||||
return NULL;
|
||||
if (index < samples.size()) {
|
||||
return samples.at(index);
|
||||
}
|
||||
return samples.at(index);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void SrsMp4SampleManager::append(SrsMp4Sample* sample)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue