summaryrefslogtreecommitdiff
path: root/libavcodec/vda_h264.c
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@free.fr>2011-11-14 22:03:38 +0100
committerSebastien Zwickert <dilaroga@free.fr>2011-11-14 22:24:03 +0100
commit81852ef5d6d749371d9314abe70b6eebab2c797f (patch)
tree5ad44231db665746cdcbdd65e9cf5a377b6d329b /libavcodec/vda_h264.c
parent4590e161e6761cbb9fcaab7b3d216cb2b7ae0132 (diff)
vda: get correctly the frame from h264 context.
Diffstat (limited to 'libavcodec/vda_h264.c')
-rw-r--r--libavcodec/vda_h264.c2
1 files changed, 1 insertions, 1 deletions
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)