mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #266, aac profile is object id plus one. 2.0.80
This commit is contained in:
parent
c0a6c3efa3
commit
12f4abd553
3 changed files with 8 additions and 2 deletions
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
// current release version
|
||||
#define VERSION_MAJOR 2
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 79
|
||||
#define VERSION_REVISION 80
|
||||
// server info.
|
||||
#define RTMP_SIG_SRS_KEY "SRS"
|
||||
#define RTMP_SIG_SRS_ROLE "origin/edge server"
|
||||
|
|
|
@ -1065,10 +1065,15 @@ int __srs_write_aac_adts_frames(Context* context,
|
|||
return ERROR_AAC_ADTS_HEADER;
|
||||
}
|
||||
|
||||
// the profile = object_id + 1
|
||||
// @see aac-mp4a-format-ISO_IEC_14496-3+2001.pdf, page 78,
|
||||
// Table 1. A.9 – MPEG-2 Audio profiles and MPEG-4 Audio object types
|
||||
char aac_profile = fh_Profile_ObjectType + 1;
|
||||
|
||||
char* raw_data = stream->data() + stream->pos();
|
||||
if ((ret = __srs_write_aac_adts_frame(context,
|
||||
sound_format, sound_rate, sound_size, sound_type,
|
||||
fh_Profile_ObjectType, fh_sampling_frequency_index, fh_channel_configuration,
|
||||
aac_profile, fh_sampling_frequency_index, fh_channel_configuration,
|
||||
raw_data, raw_data_size, timestamp)) != ERROR_SUCCESS
|
||||
) {
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue