ra144enc: fix end-of-stream handling