1 diff -ur a/libavcodec/libx264.c b/libavcodec/libx264.c
2 --- a/libavcodec/libx264.c 2018-02-11 17:29:18.000000000 -0700
3 +++ b/libavcodec/libx264.c 2018-03-13 09:38:03.241861794 -0600
6 x264_picture_init( &x4->pic );
7 x4->pic.img.i_csp = x4->params.i_csp;
8 - if (desc->comp[0].depth > 8)
10 + if (x4->params.i_bitdepth > 8)
12 + if (x264_bit_depth > 8)
14 x4->pic.img.i_csp |= X264_CSP_HIGH_DEPTH;
15 x4->pic.img.i_plane = avfmt2_num_planes(ctx->pix_fmt);