cap AAC bitrate at 96000 to prevent the aac encoder from complaining

This commit is contained in:
Isaac Connor 2018-12-20 15:10:04 -05:00
parent a277f697e9
commit 48865f124b
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ bool VideoStore::setup_resampler() {
#endif
/* put sample parameters */
audio_out_ctx->bit_rate = audio_in_ctx->bit_rate;
audio_out_ctx->bit_rate = audio_in_ctx->bit_rate <= 96000 ? audio_in_ctx->bit_rate : 96000;
audio_out_ctx->sample_rate = audio_in_ctx->sample_rate;
audio_out_ctx->channels = audio_in_ctx->channels;
audio_out_ctx->channel_layout = audio_in_ctx->channel_layout;