1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

DVR: support mp3 audio codec. (#2593) v5.0.17

This commit is contained in:
Haibo Chen 2021-09-10 11:53:31 +08:00 committed by winlin
parent e03ada39a1
commit 7fd5e8607c
8 changed files with 167 additions and 14 deletions

View file

@ -1388,6 +1388,7 @@ srs_error_t SrsFormat::audio_mp3_demux(SrsBuffer* stream, int64_t timestamp)
audio->cts = 0;
audio->dts = timestamp;
audio->aac_packet_type = SrsAudioMp3FrameTrait;
// @see: E.4.2 Audio Tags, video_file_format_spec_v10_1.pdf, page 76
int8_t sound_format = stream->read_1bytes();