[vlc-commits] aout: fix forgotten rate inversion

Thomas Guillem git at videolan.org
Mon Feb 18 14:32:20 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Feb 18 14:30:22 2019 +0100| [ce3cf438008ab097142aab53795a97a1d5639db4] | committer: Thomas Guillem

aout: fix forgotten rate inversion

cf. b36e69b7726e89234c2577d59a5ca6450db66e42

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce3cf438008ab097142aab53795a97a1d5639db4
---

 src/audio_output/dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 4d87c2a462..d343cbc745 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -276,7 +276,7 @@ static void aout_DecSynchronize(audio_output_t *aout, vlc_tick_t dec_pts)
     /* Early audio output.
      * This is rare except at startup when the buffers are still empty. */
     if (drift < (owner->sync.discontinuity ? 0
-                : lroundf(-3 * AOUT_MAX_PTS_ADVANCE * rate)))
+                : lroundf(-3 * AOUT_MAX_PTS_ADVANCE / rate)))
     {
         if (!owner->sync.discontinuity)
             msg_Warn (aout, "playback way too early (%"PRId64"): "



More information about the vlc-commits mailing list