mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #310, refine code to support he/hev2, use aac object.
This commit is contained in:
parent
8dbabe3708
commit
885b9af122
10 changed files with 23 additions and 21 deletions
|
@ -294,7 +294,7 @@ SrsAvcAacCodec::SrsAvcAacCodec()
|
|||
|
||||
avc_profile = 0;
|
||||
avc_level = 0;
|
||||
aac_profile = SrsAacProfileReserved;
|
||||
aac_object = SrsAacObjectTypeReserved;
|
||||
aac_sample_rate = __SRS_AAC_SAMPLE_RATE_UNSET; // sample rate ignored
|
||||
aac_channels = 0;
|
||||
avc_extra_size = 0;
|
||||
|
@ -493,8 +493,8 @@ int SrsAvcAacCodec::audio_aac_sequence_header_demux(char* data, int size)
|
|||
aac_sample_rate = samplingFrequencyIndex;
|
||||
|
||||
// convert the object type in sequence header to aac profile of ADTS.
|
||||
aac_profile = srs_codec_aac_rtmp2ts((SrsAacObjectType)profile_ObjectType);
|
||||
if (aac_profile == SrsAacProfileReserved) {
|
||||
aac_object = (SrsAacObjectType)profile_ObjectType;
|
||||
if (aac_object == SrsAacObjectTypeReserved) {
|
||||
ret = ERROR_HLS_DECODE_ERROR;
|
||||
srs_error("audio codec decode aac sequence header failed, "
|
||||
"adts object=%d invalid. ret=%d", profile_ObjectType, ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue