input: Invert sizes of input/read buffers

Input buffer must be bigger than read buffer to ensure it always has space for
converted data.