[libav-devel] [PATCH] x264: Support version 155
jamrial at gmail.com
Tue Dec 26 22:44:38 CET 2017
On 12/26/2017 10:10 AM, Nicolas George wrote:
> James Almer (2017-12-26):
>>> +#if X264_BUILD >= 155
>>> + if (x4->params.i_bitdepth > 8)
>> Wouldn't using av_pix_fmt_desc_get(avctx->pix_fmt)->comp.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.
x4->params.i_bitdepth is set by libavcodec based on the value of
avctx->pix_fmt at the time AVCodec.init() is called, so it should be the
Unless avctx->pix_fmt can change mid encoding, in which case things
would just not work anyway.
> You may want to check the similar change you made on FFmpeg.
> libav-devel mailing list
> libav-devel at libav.org
More information about the libav-devel