remuxer: Fix flushing the last samples in the last fragment of each track.