1
0
Fork 0
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:
winlin 2014-07-05 23:45:43 +08:00
parent 921b7d239f
commit b2303c5704

View file

@ -401,6 +401,8 @@ int64_t SrsHlsAacJitter::on_buffer_start(int64_t flv_pts, int sample_rate, int a
} }
// @see: ngx_rtmp_hls_audio // @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, // resample for the tbn of ts is 90000, flv is 1000,
// we will lost timestamp if use audio packet timestamp, // we will lost timestamp if use audio packet timestamp,
// so we must resample. or audio will corupt in IOS. // so we must resample. or audio will corupt in IOS.