int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx)

{

    AVVDPAUContext *hwctx = avctx->hwaccel_context;

    MpegEncContext *s = avctx->priv_data;

    Picture *pic = s->current_picture_ptr;

    struct vdpau_picture_context *pic_ctx = pic->hwaccel_picture_private;

    VdpVideoSurface surf = ff_vdpau_get_surface_id(&pic->f);



    hwctx->render(hwctx->decoder, surf, (void *)&pic_ctx->info,

                  pic_ctx->bitstream_buffers_used, pic_ctx->bitstream_buffers);



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

    av_freep(&pic_ctx->bitstream_buffers);



    return 0;

}

int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx)

{

    AVVDPAUContext *hwctx = avctx->hwaccel_context;

    MpegEncContext *s = avctx->priv_data;

    Picture *pic = s->current_picture_ptr;

    struct vdpau_picture_context *pic_ctx = pic->hwaccel_picture_private;

    VdpVideoSurface surf = ff_vdpau_get_surface_id(&pic->f);



    hwctx->render(hwctx->decoder, surf, (void *)&pic_ctx->info,

                  pic_ctx->bitstream_buffers_used, pic_ctx->bitstream_buffers);



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

    av_freep(&pic_ctx->bitstream_buffers);



    return 0;

}

    VdpVideoSurface surf = ff_vdpau_get_surface_id(&pic->f);
int FUNC_0(AVCodecContext *VAR_0)

{

    AVVDPAUContext *hwctx = VAR_0->hwaccel_context;

    MpegEncContext *s = VAR_0->priv_data;

    Picture *pic = s->current_picture_ptr;

    struct vdpau_picture_context *VAR_1 = pic->hwaccel_picture_private;

    VdpVideoSurface surf = ff_vdpau_get_surface_id(&pic->f);



    hwctx->render(hwctx->decoder, surf, (void *)&VAR_1->info,

                  VAR_1->bitstream_buffers_used, VAR_1->bitstream_buffers);



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

    av_freep(&VAR_1->bitstream_buffers);



    return 0;

}

int FUNC_0(AVCodecContext *VAR_0)
{ AVVDPAUContext *hwctx = VAR_0->hwaccel_context; MpegEncContext *s = VAR_0->priv_data; Picture *pic = s->current_picture_ptr; struct vdpau_picture_context *VAR_1 = pic->hwaccel_picture_private; VdpVideoSurface surf = ff_vdpau_get_surface_id(&pic->f); hwctx->render(hwctx->decoder, surf, (void *)&VAR_1->info,
VAR_1->bitstream_buffers_used, VAR_1->bitstream_buffers); ff_mpeg_draw_horiz_band(s, 0, s->VAR_0->height); av_freep(&VAR_1->bitstream_buffers); return 0; }