mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #310, refine the aac profile for adts and aac object for RTMP sequence header.
This commit is contained in:
parent
04f3f2a8f8
commit
d3e2838fc6
10 changed files with 141 additions and 130 deletions
|
@ -60,7 +60,7 @@ SrsStatisticStream::SrsStatisticStream()
|
|||
acodec = SrsCodecAudioReserved1;
|
||||
asample_rate = SrsCodecAudioSampleRateReserved;
|
||||
asound_type = SrsCodecAudioSoundTypeReserved;
|
||||
aac_profile = 0;
|
||||
aac_profile = SrsAacProfileReserved;
|
||||
}
|
||||
|
||||
SrsStatisticStream::~SrsStatisticStream()
|
||||
|
@ -128,7 +128,7 @@ int SrsStatistic::on_video_info(SrsRequest* req,
|
|||
|
||||
int SrsStatistic::on_audio_info(SrsRequest* req,
|
||||
SrsCodecAudio acodec, SrsCodecAudioSampleRate asample_rate, SrsCodecAudioSoundType asound_type,
|
||||
u_int8_t aac_profile
|
||||
SrsAacProfile aac_profile
|
||||
) {
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ public:
|
|||
* 1.5.1.1 Audio object type definition, page 23,
|
||||
* in aac-mp4a-format-ISO_IEC_14496-3+2001.pdf.
|
||||
*/
|
||||
u_int8_t aac_profile;
|
||||
SrsAacProfile aac_profile;
|
||||
public:
|
||||
SrsStatisticStream();
|
||||
virtual ~SrsStatisticStream();
|
||||
|
@ -120,7 +120,7 @@ public:
|
|||
*/
|
||||
virtual int on_audio_info(SrsRequest* req,
|
||||
SrsCodecAudio acodec, SrsCodecAudioSampleRate asample_rate, SrsCodecAudioSoundType asound_type,
|
||||
u_int8_t aac_profile
|
||||
SrsAacProfile aac_profile
|
||||
);
|
||||
/**
|
||||
* when close stream.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue