int av_asrc_buffer_add_buffer(AVFilterContext *ctx,

                              uint8_t *buf, int buf_size, int sample_rate,

                              int sample_fmt, int64_t channel_layout, int planar,

                              int64_t pts, int av_unused flags)

{

    uint8_t *data[8];

    int linesize[8];

    int nb_channels = av_get_channel_layout_nb_channels(channel_layout),

        nb_samples  = buf_size / nb_channels / av_get_bytes_per_sample(sample_fmt);



    av_samples_fill_arrays(data, linesize,

                           buf, nb_channels, nb_samples,

                           sample_fmt, 16);



    return av_asrc_buffer_add_samples(ctx,

                                      data, linesize, nb_samples,

                                      sample_rate,

                                      sample_fmt, channel_layout, planar,

                                      pts, flags);

}

int av_asrc_buffer_add_buffer(AVFilterContext *ctx,

                              uint8_t *buf, int buf_size, int sample_rate,

                              int sample_fmt, int64_t channel_layout, int planar,

                              int64_t pts, int av_unused flags)

{

    uint8_t *data[8];

    int linesize[8];

    int nb_channels = av_get_channel_layout_nb_channels(channel_layout),

        nb_samples  = buf_size / nb_channels / av_get_bytes_per_sample(sample_fmt);



    av_samples_fill_arrays(data, linesize,

                           buf, nb_channels, nb_samples,

                           sample_fmt, 16);



    return av_asrc_buffer_add_samples(ctx,

                                      data, linesize, nb_samples,

                                      sample_rate,

                                      sample_fmt, channel_layout, planar,

                                      pts, flags);

}

    uint8_t *data[8];
int FUNC_0(AVFilterContext *VAR_0,

                              uint8_t *VAR_1, int VAR_2, int VAR_3,

                              int VAR_4, int64_t VAR_5, int VAR_6,

                              int64_t VAR_7, int VAR_8 flags)

{

    uint8_t *data[8];

    int VAR_9[8];

    int VAR_10 = av_get_channel_layout_nb_channels(VAR_5),

        VAR_11  = VAR_2 / VAR_10 / av_get_bytes_per_sample(VAR_4);



    av_samples_fill_arrays(data, VAR_9,

                           VAR_1, VAR_10, VAR_11,

                           VAR_4, 16);



    return av_asrc_buffer_add_samples(VAR_0,

                                      data, VAR_9, VAR_11,

                                      VAR_3,

                                      VAR_4, VAR_5, VAR_6,

                                      VAR_7, flags);

}

int FUNC_0(AVFilterContext *VAR_0,
uint8_t *VAR_1, int VAR_2, int VAR_3,
int VAR_4, int64_t VAR_5, int VAR_6,
int64_t VAR_7, int VAR_8 flags)
{ uint8_t *data[8]; int VAR_9[8]; int VAR_10 = av_get_channel_layout_nb_channels(VAR_5),
VAR_11  = VAR_2 / VAR_10 / av_get_bytes_per_sample(VAR_4); av_samples_fill_arrays(data, VAR_9,
VAR_1, VAR_10, VAR_11,
VAR_4, 16); return av_asrc_buffer_add_samples(VAR_0,
data, VAR_9, VAR_11,
VAR_3,
VAR_4, VAR_5, VAR_6,
VAR_7, flags); }