Fix: Input format buffer fails in local mode with short files

Change-Id: Idabd3c0a31d545b0a7951b4948e53f0ac4e28c01