[FFmpeg-cvslog] vda: get correctly the frame from h264 context.

Sebastien Zwickert git at videolan.org
Mon Nov 14 23:23:24 CET 2011


ffmpeg | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Mon Nov 14 22:03:38 2011 +0100| [81852ef5d6d749371d9314abe70b6eebab2c797f] | committer: Sebastien Zwickert

vda: get correctly the frame from h264 context.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=81852ef5d6d749371d9314abe70b6eebab2c797f
---

 libavcodec/vda_h264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c
index 5d624ac..6ea5e0f 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)



More information about the ffmpeg-cvslog mailing list