demux_mkv.c: Make time arithmetic more precise in one more case

Use rounding instead of truncation in another case of double division
used with integer variables.
This commit is contained in:
Uoti Urpala 2009-12-02 03:45:54 +02:00
parent ed333bb31d
commit 74fd43cf70
1 changed files with 1 additions and 1 deletions

View File

@ -2819,7 +2819,7 @@ demux_mkv_fill_buffer (demuxer_t *demuxer, demux_stream_t *ds)
free(block);
return 0;
}
block_duration *= mkv_d->tc_scale / 1000000.0;
block_duration = block_duration * mkv_d->tc_scale / 1000000.0 + 0.5;
break;
}