[vlc-devel] [PATCH 2/8] demux: oggseek: use CLOCK_FREQ explicitly for bitrate conversion
Steve Lhomme
robux4 at ycbcr.xyz
Thu Aug 13 14:12:15 CEST 2020
---
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 7fca91bccb6..6defaca2316 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;
}
--
2.26.2
More information about the vlc-devel
mailing list