8c7cddb7479b3ac36e0d22161cfe0e951b72c529
[goodguy/history.git] / cinelerra-5.1 / thirdparty / src / ffmpeg-3.4.2.patch4
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
4 @@ -280,7 +280,11 @@
5  
6      x264_picture_init( &x4->pic );
7      x4->pic.img.i_csp   = x4->params.i_csp;
8 -    if (desc->comp[0].depth > 8)
9 +#if X264_BUILD >= 153
10 +    if (x4->params.i_bitdepth > 8)
11 +#else
12 +    if (x264_bit_depth > 8)
13 +#endif
14          x4->pic.img.i_csp |= X264_CSP_HIGH_DEPTH;
15      x4->pic.img.i_plane = avfmt2_num_planes(ctx->pix_fmt);
16