Allow for multiple SPS/PPS in AVCC Box
This commit is contained in:
parent
4f7b902453
commit
373b9afd32
3 changed files with 115 additions and 61 deletions
|
@ -104,9 +104,9 @@ namespace Mist{
|
|||
avccBox.setProfile(spsInfo[1]);
|
||||
avccBox.setCompatibleProfiles(spsInfo[2]);
|
||||
avccBox.setLevel(spsInfo[3]);
|
||||
avccBox.setSPSNumber(1);
|
||||
avccBox.setSPSCount(1);
|
||||
avccBox.setSPS(spsInfo);
|
||||
avccBox.setPPSNumber(1);
|
||||
avccBox.setPPSCount(1);
|
||||
avccBox.setPPS(ppsInfo);
|
||||
myMeta.tracks[1].init = std::string(avccBox.payload(), avccBox.payloadSize());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue