static int movie_request_frame(AVFilterLink *outlink)

{

    AVFilterBufferRef *outpicref;

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

    int ret;



    if (movie->is_done)

        return AVERROR_EOF;

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

        return ret;



    outpicref = avfilter_ref_buffer(movie->picref, ~0);

    ff_start_frame(outlink, outpicref);

    ff_draw_slice(outlink, 0, outlink->h, 1);

    ff_end_frame(outlink);

    avfilter_unref_buffer(movie->picref);

    movie->picref = NULL;



    return 0;

}

static int movie_request_frame(AVFilterLink *outlink)

{

    AVFilterBufferRef *outpicref;

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

    int ret;



    if (movie->is_done)

        return AVERROR_EOF;

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

        return ret;



    outpicref = avfilter_ref_buffer(movie->picref, ~0);

    ff_start_frame(outlink, outpicref);

    ff_draw_slice(outlink, 0, outlink->h, 1);

    ff_end_frame(outlink);

    avfilter_unref_buffer(movie->picref);

    movie->picref = NULL;



    return 0;

}

static int FUNC_0(AVFilterLink *VAR_0)

{

    AVFilterBufferRef *outpicref;

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

    int VAR_1;



    if (movie->is_done)

        return AVERROR_EOF;

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

        return VAR_1;



    outpicref = avfilter_ref_buffer(movie->picref, ~0);

    ff_start_frame(VAR_0, outpicref);

    ff_draw_slice(VAR_0, 0, VAR_0->h, 1);

    ff_end_frame(VAR_0);

    avfilter_unref_buffer(movie->picref);

    movie->picref = NULL;



    return 0;

}

static int FUNC_0(AVFilterLink *VAR_0)
{ AVFilterBufferRef *outpicref; MovieContext *movie = VAR_0->src->priv; int VAR_1; if (movie->is_done)
return AVERROR_EOF; if ((VAR_1 = movie_get_frame(VAR_0)) < 0)
return VAR_1; outpicref = avfilter_ref_buffer(movie->picref, ~0); ff_start_frame(VAR_0, outpicref); ff_draw_slice(VAR_0, 0, VAR_0->h, 1); ff_end_frame(VAR_0); avfilter_unref_buffer(movie->picref); movie->picref = NULL; return 0; }