core/formats: fix offsets in YUV pixel format parsing