Commit 0f503d3d authored by conrad's avatar conrad

guard guess division

git-svn-id: 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 0530e059
......@@ -927,6 +927,8 @@ guess (ogg_int64_t unit_at, ogg_int64_t unit_target,
ogg_int64_t guess_ratio;
oggz_off_t offset_guess;
if (unit_at == unit_begin) return offset_begin;
guess_ratio =
GUESS_MULTIPLIER * (unit_target - unit_begin) /
(unit_at - unit_begin);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment