mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, use macro for hls resample audio
This commit is contained in:
parent
921b7d239f
commit
b2303c5704
1 changed files with 2 additions and 0 deletions
|
@ -401,6 +401,8 @@ int64_t SrsHlsAacJitter::on_buffer_start(int64_t flv_pts, int sample_rate, int a
|
|||
}
|
||||
|
||||
// @see: ngx_rtmp_hls_audio
|
||||
// drop the rtmp audio packet timestamp, re-calc it by sample rate.
|
||||
//
|
||||
// resample for the tbn of ts is 90000, flv is 1000,
|
||||
// we will lost timestamp if use audio packet timestamp,
|
||||
// so we must resample. or audio will corupt in IOS.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue