[vlc-commits] mux:ogg: compute the size based on duration using CLOCK_FREQ explicitly
Steve Lhomme
git at videolan.org
Tue Sep 18 15:56:03 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 10:23:16 2018 +0200| [47f4e50a1e699c64be99d4b33d2a37673577a59b] | committer: Steve Lhomme
mux:ogg: compute the size based on duration using CLOCK_FREQ explicitly
Since i_interval is in vlc_tick_t
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47f4e50a1e699c64be99d4b33d2a37673577a59b
---
modules/mux/ogg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index b04f56a966..0452694c4c 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -1446,7 +1446,7 @@ static bool AllocateIndex( sout_mux_t *p_mux, sout_input_t *p_input )
/* estimate length of pos value */
if ( p_input->p_fmt->i_bitrate )
{
- i = i_interval * p_input->p_fmt->i_bitrate / 1000000;
+ i = i_interval * p_input->p_fmt->i_bitrate / CLOCK_FREQ;
while ( i <<= 1 ) i_tuple_size++;
}
else
More information about the vlc-commits
mailing list