Ogg vorbis track lengths and first few seconds cut off
VLC can't seem to handle ogg/vorbis track lengths properly. I can calculate the track lengths accurately from the number of samples and sample rate, so VLC should be able to easily enough. The same tracks in other formats get the correct track length in VLC. Sometimes the tracks are a few seconds longer than VLC says, sometimes they are a few seconds shorter. This bug was in 0.8.6 and is still in 0.9.2 and 0.9.6. I have only tested this on Windows Vista x64.
For example, the following information was obtained by libvorbis on a specific file: 2 channels, 44100Hz, 19443396 samples
19443396 / 44100 = 440 seconds = 7 minutes 20 seconds (with integer division) but VLC thinks that this file is 7 minutes 27 seconds long when it is in ogg/vorbis format. The same song as a WAV, FLAC or MP3 says 7:20, as it should. When VLC gets to 7:20, it stops anyway (and when the displayed length is too short on other files, it keeps going past where it thinks the end is) so it always actually stops at the correct length but it shouldn't be too hard to display this properly and this makes the seek slider more accurate too.
This bug may be related to the above bug or separate:
More annoying is that it cuts the first few seconds off each Vorbis track. Again, libvorbis can play this file perfectly well in just a few lines of C and again, other formats do not cut the first few seconds off when converted, so they are definitely there in the file but VLC is skipping them. This could be the initial buffer only.