Fixed FLV/RTMP stuttering problems.
This commit is contained in:
parent
5a2ee56e6b
commit
61d0820002
1 changed files with 1 additions and 8 deletions
|
@ -386,11 +386,7 @@ bool FLV::Tag::DTSCLoader(DTSC::Packet & packData, DTSC::Track & track) {
|
||||||
if (track.codec == "H264") {
|
if (track.codec == "H264") {
|
||||||
memcpy(data + 16, tmpData, len - 20);
|
memcpy(data + 16, tmpData, len - 20);
|
||||||
data[12] = 1;
|
data[12] = 1;
|
||||||
if (packData.getInt("offset") < 0) {
|
offset(packData.getInt("offset"));
|
||||||
offset(0);
|
|
||||||
} else {
|
|
||||||
offset(packData.getInt("offset"));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
memcpy(data + 12, tmpData, len - 16);
|
memcpy(data + 12, tmpData, len - 16);
|
||||||
}
|
}
|
||||||
|
@ -512,9 +508,6 @@ bool FLV::Tag::DTSCLoader(DTSC::Packet & packData, DTSC::Track & track) {
|
||||||
data[9] = 0;
|
data[9] = 0;
|
||||||
data[10] = 0;
|
data[10] = 0;
|
||||||
tagTime(packData.getTime());
|
tagTime(packData.getTime());
|
||||||
if (packData.getInt("offset")) {
|
|
||||||
tagTime(packData.getTime() + packData.getInt("offset"));
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue