fixes for yuv planar linear encoding