Hello world, Please find v2 of the previous patch attached. Both bit depth and chroma sampling (420 and 444 as supported by Nvdec) are now taken into account when selecting sw_pix_fmt.