diff options
author | James Almer <jamrial@gmail.com> | 2018-01-31 22:38:50 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-01-31 22:39:53 -0300 |
commit | 1cae2f002d4e76a389f41c207b05e9eb9f8b04d3 (patch) | |
tree | 4497920a7af39c533acd82bde5142ecffb4ab836 /libavcodec | |
parent | 2633ac3a969f60905eb72080289b5d16f6451726 (diff) | |
download | ffmpeg-1cae2f002d4e76a389f41c207b05e9eb9f8b04d3.tar.gz |
avcodec/libx264: fix usage of AVComponentDescriptor depth fieldrelease/2.4
AVComponentDescriptor.depth is not available in release/2.4
This fixes compilation of the libx264 wrapper.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libx264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 72427d3931..97fc62f2c4 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -398,7 +398,7 @@ static av_cold int X264_init(AVCodecContext *avctx) x4->params.i_log_level = X264_LOG_DEBUG; x4->params.i_csp = convert_pix_fmt(avctx->pix_fmt); #if X264_BUILD >= 153 - x4->params.i_bitdepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth; + x4->params.i_bitdepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1; #endif OPT_STR("weightp", x4->wpredp); |