[PATCH] Incorrect seek time rounding in vorbisfile
While this is a really minor problem, it makes non-hackfixed vorbis decoder fail random access test in my new decoder validator module.
In ov_time_seek() :
ogg_int64_t target = pcm_total+(seconds-time_total)*vf->vi[link].rate;
Should be:
ogg_int64_t target = pcm_total + (ogg_int64_t)floor( (seconds-time_total)*vf->vi[link].rate + 0.5);