for fileac3.C I tried to add lineav_channel_layout_copy(&codec_context->ch_layout, &ch_la
yout);in FileAC3::open_file(int rd, int wr) function, so it readsav_channel_layout_copy(&codec_context->ch_layout, &ch_la
yout);
codec_context->sample_fmt = codec->sample_fmts[0];
SwrContext *resample_context = NULL;
swr_alloc_set_opts2(&resample_context,but this does not lead to ac3 working. I'll try to ask on libav maillist