| 262 | } |
| 263 | |
| 264 | void TsPacket::Reset() { |
| 265 | delete _payload; |
| 266 | _payload = NULL; |
| 267 | delete _adaptation_field; |
| 268 | _adaptation_field = NULL; |
| 269 | _transport_error_indicator = 0; |
| 270 | _payload_unit_start_indicator = 0; |
| 271 | _transport_priority = 0; |
| 272 | _pid = TS_PID_PAT; |
| 273 | _transport_scrambling_control = TS_SCRAMBLED_DISABLED; |
| 274 | _adaptation_field_control = TS_AF_RESERVED; |
| 275 | _continuity_counter = 0; |
| 276 | _payload = NULL; |
| 277 | _modified = false; |
| 278 | } |
| 279 | |
| 280 | TsAdaptationField* TsPacket::CreateAdaptationField() { |
| 281 | if (_adaptation_field != NULL) { |
no outgoing calls
no test coverage detected