[vlc-commits] es_out: fix rate conversion
Rémi Denis-Courmont
git at videolan.org
Sat May 19 15:42:55 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 19 16:38:25 2018 +0300| [b22fa70e0bbb9c6414bde52e8431b63726187431] | committer: Rémi Denis-Courmont
es_out: fix rate conversion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b22fa70e0bbb9c6414bde52e8431b63726187431
---
src/input/es_out.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 60b4aa83cd..320c47fd45 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1703,7 +1703,9 @@ static void EsCreateDecoder( es_out_t *out, es_out_id_t *p_es )
input_priv(p_input)->p_sout );
if( dec != NULL )
{
- input_DecoderChangeRate( dec, p_sys->i_rate );
+ float rate = (float)p_sys->i_rate / (float)INPUT_RATE_DEFAULT;
+
+ input_DecoderChangeRate( dec, rate );
if( p_sys->b_buffering )
input_DecoderStartWait( dec );
More information about the vlc-commits
mailing list