From 81852ef5d6d749371d9314abe70b6eebab2c797f Mon Sep 17 00:00:00 2001 From: Sebastien Zwickert Date: Mon, 14 Nov 2011 22:03:38 +0100 Subject: [PATCH] vda: get correctly the frame from h264 context. --- libavcodec/vda_h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c index 5d624ac132..6ea5e0fdd7 100644 --- a/libavcodec/vda_h264.c +++ b/libavcodec/vda_h264.c @@ -65,7 +65,7 @@ static int end_frame(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; struct vda_context *vda_ctx = avctx->hwaccel_context; - AVFrame *frame = (AVFrame*)h->s.current_picture_ptr; + AVFrame *frame = &h->s.current_picture_ptr->f; int status; if (!vda_ctx->decoder || !vda_ctx->bitstream)