Fix a problem with looping an rtpdump file. Reported by Thomas Kuntz.