Browse Source

avcodec/libx264: fix usage of AVComponentDescriptor depth field

AVComponentDescriptor.depth is not available in release/2.4

This fixes compilation of the libx264 wrapper.

Signed-off-by: James Almer <jamrial@gmail.com>
release/2.4
James Almer 8 years ago
parent
commit
1cae2f002d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libx264.c

+ 1
- 1
libavcodec/libx264.c View File

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


Loading…
Cancel
Save