@@ -402,6 +402,14 @@ SrsMpegtsFrame::SrsMpegtsFrame()
402
402
403
403
SrsTsPacket::SrsTsPacket ()
404
404
{
405
+ sync_byte = 0 ;
406
+ transport_error_indicator = 0 ;
407
+ payload_unit_start_indicator = 0 ;
408
+ transport_priority = 0 ;
409
+ pid = SrsTsPidPAT;
410
+ transport_scrambling_control = SrsTsScrambledDisabled;
411
+ adaption_field_control = SrsTsAdaptationFieldTypeReserved;
412
+ continuity_counter = 0 ;
405
413
adaptation_field = NULL ;
406
414
}
407
415
@@ -410,6 +418,46 @@ SrsTsPacket::~SrsTsPacket()
410
418
srs_freep (adaptation_field);
411
419
}
412
420
421
+ SrsTsAdaptationField::SrsTsAdaptationField ()
422
+ {
423
+ adaption_field_length = 0 ;
424
+ discontinuity_indicator = 0 ;
425
+ random_access_indicator = 0 ;
426
+ elementary_stream_priority_indicator = 0 ;
427
+ PCR_flag = 0 ;
428
+ OPCR_flag = 0 ;
429
+ splicing_point_flag = 0 ;
430
+ transport_private_data_flag = 0 ;
431
+ adaptation_field_extension_flag = 0 ;
432
+ program_clock_reference_base = 0 ;
433
+ program_clock_reference_extension = 0 ;
434
+ original_program_clock_reference_base = 0 ;
435
+ original_program_clock_reference_extension = 0 ;
436
+ splice_countdown = 0 ;
437
+ transport_private_data_length = 0 ;
438
+ transport_private_data = NULL ;
439
+ adaptation_field_extension_length = 0 ;
440
+ ltw_flag = 0 ;
441
+ piecewise_rate_flag = 0 ;
442
+ seamless_splice_flag = 0 ;
443
+ ltw_valid_flag = 0 ;
444
+ ltw_offset = 0 ;
445
+ piecewise_rate = 0 ;
446
+ splice_type = 0 ;
447
+ DTS_next_AU0 = 0 ;
448
+ marker_bit0 = 0 ;
449
+ DTS_next_AU1 = 0 ;
450
+ marker_bit1 = 0 ;
451
+ DTS_next_AU2 = 0 ;
452
+ marker_bit2 = 0 ;
453
+ nb_af_ext_reserved = 0 ;
454
+ nb_af_reserved = 0 ;
455
+ }
456
+
457
+ SrsTsAdaptationField::~SrsTsAdaptationField ()
458
+ {
459
+ }
460
+
413
461
SrsTSMuxer::SrsTSMuxer (SrsFileWriter* w)
414
462
{
415
463
writer = w;
0 commit comments