mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] packetize kObuTypeTemporalDelimiter obu into rtp packets
This commit is contained in:
@@ -95,20 +95,15 @@ std::vector<Obu> ParseObus(uint8_t* payload, int payload_size) {
|
|||||||
|
|
||||||
// Skip obus that shouldn't be transfered over rtp.
|
// Skip obus that shouldn't be transfered over rtp.
|
||||||
int obu_type = ObuType(obu.header_);
|
int obu_type = ObuType(obu.header_);
|
||||||
if (obu_type != kObuTypeTemporalDelimiter && obu_type != kObuTypeTileList &&
|
// if (obu_type != kObuTypeTemporalDelimiter && obu_type != kObuTypeTileList
|
||||||
obu_type != kObuTypePadding) {
|
// &&
|
||||||
result.push_back(obu);
|
// obu_type != kObuTypePadding) {
|
||||||
}
|
|
||||||
// if (1) {
|
|
||||||
// result.push_back(obu);
|
// result.push_back(obu);
|
||||||
// }
|
// }
|
||||||
|
if (obu_type != kObuTypeTileList && obu_type != kObuTypePadding) {
|
||||||
|
result.push_back(obu);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// for (int i = 0; i < result.size(); i++) {
|
|
||||||
// LOG_ERROR("[{}] Obu size = [{}], Obu type [{}]", i,
|
|
||||||
// result[i].payload_size_,
|
|
||||||
// ObuTypeToString((OBU_TYPE)ObuType(result[i].header_)));
|
|
||||||
// }
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user