vda: get correctly the frame from h264 context.
This commit is contained in:
parent
4590e161e6
commit
81852ef5d6
@ -65,7 +65,7 @@ static int end_frame(AVCodecContext *avctx)
|
|||||||
{
|
{
|
||||||
H264Context *h = avctx->priv_data;
|
H264Context *h = avctx->priv_data;
|
||||||
struct vda_context *vda_ctx = avctx->hwaccel_context;
|
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;
|
int status;
|
||||||
|
|
||||||
if (!vda_ctx->decoder || !vda_ctx->bitstream)
|
if (!vda_ctx->decoder || !vda_ctx->bitstream)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user