[FFmpeg-devel] [PATCH] libavcodec/x265: detect csps in libx265_encode_init_csp()

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon May 18 00:24:34 CEST 2015

On 5/16/2015 4:05 AM, Steve Borho wrote:
> Without this change, if you link with an 8bit libx265 and try to specify
> a 10bit input color space via:
>   ffmpeg -i in.mov -c:v libx265 -pix_fmt yuv420p10le out.mp4
> It will error with:

nit: It's not an error, it just changes the filter chain.

>   Incompatible pixel format 'yuv420p10le' for codec 'libx265',
>   auto-selecting format 'yuv420p'
> With this fix, it will learn if a 10bit libx265 is available at startup,
> and thus allow 10bit input color spaces.
> ---
>  libavcodec/libx265.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

As discussed on IRC, I think it is OK.

- Derek

More information about the ffmpeg-devel mailing list