> > > +} >> > + >> > +static int query_formats(AVFilterContext *ctx) >> > +{ >> > + FluidSynthContext *fluidsynth = ctx->priv; >> > + >> > + AVFilterChannelLayouts *chanlayout = NULL; >> > + int64_t chanlayouts = >> > >> av_get_default_channel_layout(2*fluid_synth_count_audio_channels(fluidsynth->synth)); >> > + >> Why this have multiplication by 2? > > Because the function actually returns the number of stereo pairs. Hence > 1=2 channels, 2=4 and so on. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".