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. | ||||
|     int obu_type = ObuType(obu.header_); | ||||
|     if (obu_type != kObuTypeTemporalDelimiter && obu_type != kObuTypeTileList && | ||||
|         obu_type != kObuTypePadding) { | ||||
|       result.push_back(obu); | ||||
|     } | ||||
|     // if (1) { | ||||
|     // if (obu_type != kObuTypeTemporalDelimiter && obu_type != kObuTypeTileList | ||||
|     // && | ||||
|     //     obu_type != kObuTypePadding) { | ||||
|     //   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; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user