[decoder] Fix tailing files that are short