img2enc: check pix_fmt for split planes mode.