vda: get correctly the frame from h264 context.
authorSebastien Zwickert <dilaroga@free.fr>
Mon, 14 Nov 2011 21:03:38 +0000 (22:03 +0100)
committerSebastien Zwickert <dilaroga@free.fr>
Mon, 14 Nov 2011 21:24:03 +0000 (22:24 +0100)
libavcodec/vda_h264.c

index 5d624ac13265b77905bb19f7e6a90cc44ef99571..6ea5e0fdd79a2a564c775cedfae613cbb32c399e 100644 (file)
@@ -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)