[vlc-commits] demux: oggseek: use CLOCK_FREQ explicitly for bitrate conversion
Steve Lhomme
git at videolan.org
Mon Aug 17 16:14:33 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Aug 13 06:44:17 2020 +0200| [52815c8f729e5c8b33e2be91c94e43b2f88a219b] | committer: Steve Lhomme
demux: oggseek: use CLOCK_FREQ explicitly for bitrate conversion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=52815c8f729e5c8b33e2be91c94e43b2f88a219b
---
modules/demux/oggseek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/oggseek.c b/modules/demux/oggseek.c
index 7fca91bccb..6defaca231 100644
--- a/modules/demux/oggseek.c
+++ b/modules/demux/oggseek.c
@@ -795,7 +795,7 @@ int Oggseek_BlindSeektoAbsoluteTime( demux_t *p_demux, logical_stream_t *p_strea
{
/* But only if there's no keyframe/preload requirements */
/* FIXME: add function to get preload time by codec, ex: opus */
- i_lowerpos = VLC_TICK_0 + (i_time - VLC_TICK_0) * p_sys->i_bitrate / INT64_C(8000000);
+ i_lowerpos = VLC_TICK_0 + (i_time - VLC_TICK_0) * p_sys->i_bitrate / (CLOCK_FREQ * 8);
b_found = true;
}
More information about the vlc-commits
mailing list