12:41
I,ve tried to do a resampling with ffmpeg, but i found issues all the time in my code.
firt, i tried to get the imput channel layout but av_channel_layout_default(&layout, audio_codecpar->nb_channels) tells me, "there´s not nb_channels menber.
so i put the resampling code manually cause I know is stereo.
av_opt_set_sample_fmt(swr_ctx, "in_sample_fmt", codec_ctx->sample_fmt, 0);
av_opt_set_int(swr_ctx, "in_channel_layout", AV_CH_LAYOUT_STEREO, 0);
av_opt_set_int(swr_ctx, "in_sample_rate", codec_ctx->sample_rate, 0);
av_opt_set_sample_fmt(swr_ctx, (...)