Fix encoder buffer under runs