Where an offense is within the jurisdiction of two or more counties, a conviction or acquittal thereof in one county is a bar to a prosecution or indictment therefor in another.