avcodec_align_dimensions2: support 12 & 14 bit planar colorspaces