Commit 81852ef5 authored by Sebastien Zwickert's avatar Sebastien Zwickert

vda: get correctly the frame from h264 context.

parent 4590e161
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment