FFmpeg input: Disable peak limiting for libfdk-aac decoder

CQTexperiment
Christopher Snowhill 2022-01-13 16:14:04 -08:00
parent 4029160a0c
commit ca4a2efea1
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ int lockmgr_callback(void ** mutex, enum AVLockOp op)
case AV_CODEC_ID_AAC:
codec = avcodec_find_decoder_by_name("libfdk_aac");
av_dict_set_int(&dict, "drc_level", -2, 0); // disable DRC
av_dict_set_int(&dict, "level_limit", 0, 0); // disable peak limiting
break;
case AV_CODEC_ID_ALAC:
codec = avcodec_find_decoder_by_name("alac");