[FFmpeg-devel] [PATCH][GSOC] avfilter: add fluidsynth filter

Marshall Murmu marshallmax1991 at gmail.com
Fri Mar 13 11:46:02 EET 2020


>
> > +}
>> > +
>> > +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.


More information about the ffmpeg-devel mailing list