winlin

refine code.

@@ -85,28 +85,28 @@ int SrsCodecSample::add_sample_unit(char* bytes, int size) @@ -85,28 +85,28 @@ int SrsCodecSample::add_sample_unit(char* bytes, int size)
85 85
86 SrsAvcAacCodec::SrsAvcAacCodec() 86 SrsAvcAacCodec::SrsAvcAacCodec()
87 { 87 {
88 - width = 0;  
89 - height = 0;  
90 - duration = 0;  
91 - NAL_unit_length = 0;  
92 - frame_rate = 0;  
93 - video_data_rate = 0;  
94 - video_codec_id = 0;  
95 - audio_data_rate = 0;  
96 - audio_codec_id = 0;  
97 - avc_profile = 0;  
98 - avc_level = 0;  
99 - aac_profile = 0;  
100 - aac_sample_rate = _SRS_AAC_SAMPLE_RATE_UNSET; // sample rate ignored  
101 - aac_channels = 0;  
102 - avc_extra_size = 0;  
103 - avc_extra_data = NULL;  
104 - aac_extra_size = 0;  
105 - aac_extra_data = NULL;  
106 - sequenceParameterSetLength = 0; 88 + width = 0;
  89 + height = 0;
  90 + duration = 0;
  91 + NAL_unit_length = 0;
  92 + frame_rate = 0;
  93 + video_data_rate = 0;
  94 + video_codec_id = 0;
  95 + audio_data_rate = 0;
  96 + audio_codec_id = 0;
  97 + avc_profile = 0;
  98 + avc_level = 0;
  99 + aac_profile = 0;
  100 + aac_sample_rate = _SRS_AAC_SAMPLE_RATE_UNSET; // sample rate ignored
  101 + aac_channels = 0;
  102 + avc_extra_size = 0;
  103 + avc_extra_data = NULL;
  104 + aac_extra_size = 0;
  105 + aac_extra_data = NULL;
  106 + sequenceParameterSetLength = 0;
107 sequenceParameterSetNALUnit = NULL; 107 sequenceParameterSetNALUnit = NULL;
108 - pictureParameterSetLength = 0;  
109 - pictureParameterSetNALUnit = NULL; 108 + pictureParameterSetLength = 0;
  109 + pictureParameterSetNALUnit = NULL;
110 110
111 stream = new SrsStream(); 111 stream = new SrsStream();
112 } 112 }