static int dxva2_vc1_end_frame(AVCodecContext *avctx)

{

    VC1Context *v = avctx->priv_data;

    struct dxva2_picture_context *ctx_pic = v->s.current_picture_ptr->hwaccel_picture_private;

    int ret;



    if (ctx_pic->bitstream_size <= 0)

        return -1;



    ret = ff_dxva2_common_end_frame(avctx, &v->s.current_picture_ptr->f,

                                    &ctx_pic->pp, sizeof(ctx_pic->pp),

                                    NULL, 0,

                                    commit_bitstream_and_slice_buffer);

    if (!ret)

        ff_mpeg_draw_horiz_band(&v->s, 0, avctx->height);

    return ret;

}

static int dxva2_vc1_end_frame(AVCodecContext *avctx)

{

    VC1Context *v = avctx->priv_data;

    struct dxva2_picture_context *ctx_pic = v->s.current_picture_ptr->hwaccel_picture_private;

    int ret;



    if (ctx_pic->bitstream_size <= 0)

        return -1;



    ret = ff_dxva2_common_end_frame(avctx, &v->s.current_picture_ptr->f,

                                    &ctx_pic->pp, sizeof(ctx_pic->pp),

                                    NULL, 0,

                                    commit_bitstream_and_slice_buffer);

    if (!ret)

        ff_mpeg_draw_horiz_band(&v->s, 0, avctx->height);

    return ret;

}

    ret = ff_dxva2_common_end_frame(avctx, &v->s.current_picture_ptr->f,
static int FUNC_0(AVCodecContext *VAR_0)

{

    VC1Context *v = VAR_0->priv_data;

    struct dxva2_picture_context *VAR_1 = v->s.current_picture_ptr->hwaccel_picture_private;

    int VAR_2;



    if (VAR_1->bitstream_size <= 0)

        return -1;



    VAR_2 = ff_dxva2_common_end_frame(VAR_0, &v->s.current_picture_ptr->f,

                                    &VAR_1->pp, sizeof(VAR_1->pp),

                                    NULL, 0,

                                    commit_bitstream_and_slice_buffer);

    if (!VAR_2)

        ff_mpeg_draw_horiz_band(&v->s, 0, VAR_0->height);

    return VAR_2;

}

static int FUNC_0(AVCodecContext *VAR_0)
{ VC1Context *v = VAR_0->priv_data; struct dxva2_picture_context *VAR_1 = v->s.current_picture_ptr->hwaccel_picture_private; int VAR_2; if (VAR_1->bitstream_size <= 0)
return -1; VAR_2 = ff_dxva2_common_end_frame(VAR_0, &v->s.current_picture_ptr->f,
&VAR_1->pp, sizeof(VAR_1->pp),
NULL, 0,
commit_bitstream_and_slice_buffer); if (!VAR_2)
ff_mpeg_draw_horiz_band(&v->s, 0, VAR_0->height); return VAR_2; }