lavc/vda_h264: fixes compilation after 1534ef87

This commit is contained in:
Clément Bœsch 2016-06-12 20:12:07 +02:00
parent c3ad63c6a3
commit 82d79970ed
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {