avformat/img2enc: Fix img2enc atomic implementation to work with split planes