- av_opt_set_int(resampler, "in_channel_layout", AV_CH_LAYOUT_STEREO, 0);
- av_opt_set_int(resampler, "out_channel_layout", AV_CH_LAYOUT_STEREO, 0);
- av_opt_set_int(resampler, "in_sample_rate", OUTPUT_FREQUENCY, 0);
- av_opt_set_int(resampler, "out_sample_rate", OUTPUT_FREQUENCY, 0);
- av_opt_set_int(resampler, "in_sample_fmt", AV_SAMPLE_FMT_FLT, 0);
- av_opt_set_int(resampler, "out_sample_fmt", ctx->sample_fmt, 0);
-
- if (avresample_open(resampler) < 0) {