static inline int available_samples(AVFrame *out)

{

    int bytes_per_sample = av_get_bytes_per_sample(out->format);

    int samples = out->linesize[0] / bytes_per_sample;



    if (av_sample_fmt_is_planar(out->format)) {

        return samples;

    } else {

        int channels = av_get_channel_layout_nb_channels(out->channel_layout);

        return samples / channels;

    }

}

static inline int available_samples(AVFrame *out)

{

    int bytes_per_sample = av_get_bytes_per_sample(out->format);

    int samples = out->linesize[0] / bytes_per_sample;



    if (av_sample_fmt_is_planar(out->format)) {

        return samples;

    } else {

        int channels = av_get_channel_layout_nb_channels(out->channel_layout);

        return samples / channels;

    }

}

    int samples = out->linesize[0] / bytes_per_sample;
static inline int FUNC_0(AVFrame *VAR_0)

{

    int VAR_1 = av_get_bytes_per_sample(VAR_0->format);

    int VAR_2 = VAR_0->linesize[0] / VAR_1;



    if (av_sample_fmt_is_planar(VAR_0->format)) {

        return VAR_2;

    } else {

        int VAR_3 = av_get_channel_layout_nb_channels(VAR_0->channel_layout);

        return VAR_2 / VAR_3;

    }

}

static inline int FUNC_0(AVFrame *VAR_0)
{ int VAR_1 = av_get_bytes_per_sample(VAR_0->format); int VAR_2 = VAR_0->linesize[0] / VAR_1; if (av_sample_fmt_is_planar(VAR_0->format)) { return VAR_2; } else { int VAR_3 = av_get_channel_layout_nb_channels(VAR_0->channel_layout); return VAR_2 / VAR_3; } }