VLC loops video and/or hangs on a particular segment of MPEG-2 video
I've got a video with a very strange behaviour. Whenever VLC gets to around the 3:12 mark, it hangs (max CPU usage), stops the audio and video, and after several seconds jumps backwards in the stream a few seconds. After it reaches 3:12, it hangs again, and repeats this process indefinitely.
I've tested with both VLC 2.2.4 and VLC 3.0.0 (vlc-3.0.0-20170328-0438) on macOS 10.12.4, with the same result (note that VLC 3 is showing some green bars at the bottom for me due presumably to an unrelated bug).
In the VLC debug console I can see a ton of errors like the following:
[00000001069978b8] clock decoder error: Timestamp conversion failed (delay 41836000, buffering 0, bound 3000000)
[00000001069978b8] core decoder error: Could not convert timestamp 81809419805
[00000001069978b8] core decoder debug: discarded audio buffer
[00000001069978b8] clock decoder error: Timestamp conversion failed (delay 41836000, buffering 0, bound 3000000)
[00000001069978b8] core decoder error: Could not convert timestamp 81809429805
[00000001069978b8] core decoder debug: discarded audio buffer
[00000001069978b8] clock decoder error: Timestamp conversion failed (delay 41836000, buffering 0, bound 3000000)
[00000001069978b8] core decoder error: Could not convert timestamp 81809439805
[00000001069978b8] core decoder debug: discarded audio buffer
I've attached the full log file (as captured by VLC -vv).
The video plays just fine under QuickTime Player (10.4), including seeking to any part of the file.
Here's the offending file itself, a music video (too big for Trac): https://www.dropbox.com/s/l57hmclsk1hyk87/VTS_01_1.VOB?dl=0