Removed unused flags from ISMV input.
This commit is contained in:
parent
f3f0904b98
commit
58d9e094d7
1 changed files with 1 additions and 6 deletions
|
@ -98,16 +98,14 @@ namespace Mist {
|
||||||
lastPack["duration"] = trunSamples[i].sampleDuration;
|
lastPack["duration"] = trunSamples[i].sampleDuration;
|
||||||
if (myMeta.tracks[tId].type == "video") {
|
if (myMeta.tracks[tId].type == "video") {
|
||||||
if (i) {
|
if (i) {
|
||||||
lastPack["interframe"] = 1LL;
|
|
||||||
lastBytePos ++;
|
lastBytePos ++;
|
||||||
} else {
|
} else {
|
||||||
lastPack["keyframe"] = 1LL;
|
lastPack["keyframe"] = 1LL;
|
||||||
lastBytePos = curBytePos;
|
lastBytePos = curBytePos;
|
||||||
}
|
}
|
||||||
lastPack["bpos"] = lastBytePos;
|
lastPack["bpos"] = lastBytePos;
|
||||||
lastPack["nalu"] = 1LL;
|
|
||||||
unsigned int offsetConv = trunSamples[i].sampleOffset / 10000;
|
unsigned int offsetConv = trunSamples[i].sampleOffset / 10000;
|
||||||
lastPack["offset"] = *(int*)&offsetConv;
|
lastPack["offset"] = (int)offsetConv;
|
||||||
} else {
|
} else {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
lastPack["keyframe"] = 1LL;
|
lastPack["keyframe"] = 1LL;
|
||||||
|
@ -148,10 +146,7 @@ namespace Mist {
|
||||||
if (myMeta.tracks[tId].type == "video") {
|
if (myMeta.tracks[tId].type == "video") {
|
||||||
if (buffered.begin()->isKeyFrame) {
|
if (buffered.begin()->isKeyFrame) {
|
||||||
thisPack["keyframe"] = 1LL;
|
thisPack["keyframe"] = 1LL;
|
||||||
} else {
|
|
||||||
thisPack["interframe"] = 1LL;
|
|
||||||
}
|
}
|
||||||
thisPack["nalu"] = 1LL;
|
|
||||||
thisPack["offset"] = buffered.begin()->offset / 10000;
|
thisPack["offset"] = buffered.begin()->offset / 10000;
|
||||||
} else {
|
} else {
|
||||||
if (buffered.begin()->isKeyFrame) {
|
if (buffered.begin()->isKeyFrame) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue