diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c index b6b9ab4a89cee..2a183302d0eca 100644 --- a/libavcodec/vda_h264.c +++ b/libavcodec/vda_h264.c @@ -342,6 +342,7 @@ static int vda_h264_decode_slice(AVCodecContext *avctx, uint32_t size) { VDAContext *vda = avctx->internal->hwaccel_priv_data; + H264Context *h = avctx->priv_data; void *tmp; if (h->is_avc == 1)