modified src/Codec to src/Sample