cap AAC bitrate at 96000 to prevent the aac encoder from complaining
This commit is contained in:
parent
a277f697e9
commit
48865f124b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue