From b2303c5704381b45c4372917b2ce1c498f2157d5 Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 5 Jul 2014 23:45:43 +0800 Subject: [PATCH] refine code, use macro for hls resample audio --- trunk/src/app/srs_app_hls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/src/app/srs_app_hls.cpp b/trunk/src/app/srs_app_hls.cpp index 667999fa5..f79c1213c 100644 --- a/trunk/src/app/srs_app_hls.cpp +++ b/trunk/src/app/srs_app_hls.cpp @@ -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.