static int amovie_request_frame(AVFilterLink *outlink)

{

    MovieContext *movie = outlink->src->priv;

    int ret;



    if (movie->is_done)

        return AVERROR_EOF;

    do {

        if ((ret = amovie_get_samples(outlink)) < 0)

            return ret;

    } while (!movie->samplesref);



    ff_filter_samples(outlink, avfilter_ref_buffer(movie->samplesref, ~0));

    avfilter_unref_buffer(movie->samplesref);

    movie->samplesref = NULL;



    return 0;

}

static int amovie_request_frame(AVFilterLink *outlink)

{

    MovieContext *movie = outlink->src->priv;

    int ret;



    if (movie->is_done)

        return AVERROR_EOF;

    do {

        if ((ret = amovie_get_samples(outlink)) < 0)

            return ret;

    } while (!movie->samplesref);



    ff_filter_samples(outlink, avfilter_ref_buffer(movie->samplesref, ~0));

    avfilter_unref_buffer(movie->samplesref);

    movie->samplesref = NULL;



    return 0;

}

static int FUNC_0(AVFilterLink *VAR_0)

{

    MovieContext *movie = VAR_0->src->priv;

    int VAR_1;



    if (movie->is_done)

        return AVERROR_EOF;

    do {

        if ((VAR_1 = amovie_get_samples(VAR_0)) < 0)

            return VAR_1;

    } while (!movie->samplesref);



    ff_filter_samples(VAR_0, avfilter_ref_buffer(movie->samplesref, ~0));

    avfilter_unref_buffer(movie->samplesref);

    movie->samplesref = NULL;



    return 0;

}

static int FUNC_0(AVFilterLink *VAR_0)
{ MovieContext *movie = VAR_0->src->priv; int VAR_1; if (movie->is_done)
return AVERROR_EOF; do { if ((VAR_1 = amovie_get_samples(VAR_0)) < 0)
return VAR_1; } while (!movie->samplesref); ff_filter_samples(VAR_0, avfilter_ref_buffer(movie->samplesref, ~0)); avfilter_unref_buffer(movie->samplesref); movie->samplesref = NULL; return 0; }