James Almer (2017-12-26):
> > +#if X264_BUILD >= 155
> > +    if (x4->params.i_bitdepth > 8)
> > +#else

> Wouldn't using av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth here
> as well be cleaner?

avctx->pix_fmt tells us what libavcodec wants; x4->params.i_bitdepth
tells us what x264 proposes; they are not necessarily the same thing.

You may want to check the similar change you made on FFmpeg.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to