From 82d79970edb13daa469f50ba96629b25794e8dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sun, 12 Jun 2016 20:12:07 +0200 Subject: [PATCH] lavc/vda_h264: fixes compilation after 1534ef87 --- libavcodec/vda_h264_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vda_h264_dec.c b/libavcodec/vda_h264_dec.c index a092693dbc..a196eb7228 100644 --- a/libavcodec/vda_h264_dec.c +++ b/libavcodec/vda_h264_dec.c @@ -226,7 +226,7 @@ static av_cold int vdadec_init(AVCodecContext *avctx) ctx->h264_initialized = 1; for (i = 0; i < MAX_SPS_COUNT; i++) { - SPS *sps = ctx->h264ctx.sps_buffers[i]; + const SPS *sps = (const SPS*)ctx->h264ctx.ps.sps_list[i]->data; if (sps && (sps->bit_depth_luma != 8 || sps->chroma_format_idc == 2 || sps->chroma_format_idc == 3)) {