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

refine hls, extract the flv/aac sample rates

This commit is contained in:
winlin 2014-07-06 17:32:48 +08:00
parent e5e2729967
commit 96e0273e99
4 changed files with 42 additions and 23 deletions

View file

@ -1082,15 +1082,8 @@ int SrsSource::on_audio(SrsMessage* audio)
return ret;
}
static int flv_sample_rates[] = {5512, 11025, 22050, 44100, 0};
static int flv_sample_sizes[] = {8, 16, 0};
static int flv_sound_types[] = {1, 2, 0};
static int aac_sample_rates[] = {
96000, 88200, 64000, 48000,
44100, 32000, 24000, 22050,
16000, 12000, 11025, 8000,
7350, 0, 0, 0
};
srs_trace("%dB audio sh, "
"codec(%d, profile=%d, %dchannels, %dkbps, %dHZ), "
"flv(%dbits, %dchannels, %dHZ)",