[vlc-commits] sout:AES3Audio: TicksDurationToFrames takes a vlc_tick_t

Steve Lhomme git at videolan.org
Thu Sep 20 16:16:02 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 20 13:44:02 2018 +0200| [dfce236dc63055f4b49f47efc89f0ce2029c31e0] | committer: Steve Lhomme

sout:AES3Audio: TicksDurationToFrames takes a vlc_tick_t

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

 modules/stream_out/sdi/AES3Audio.cpp | 2 +-
 modules/stream_out/sdi/AES3Audio.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/sdi/AES3Audio.cpp b/modules/stream_out/sdi/AES3Audio.cpp
index fe06149008..8a8aa15733 100644
--- a/modules/stream_out/sdi/AES3Audio.cpp
+++ b/modules/stream_out/sdi/AES3Audio.cpp
@@ -87,7 +87,7 @@ unsigned AES3AudioBuffer::BytesToFrames(size_t s) const
     return s / (sizeof(uint16_t) * buffersubframes);
 }
 
-unsigned AES3AudioBuffer::TicksDurationToFrames(int64_t t) const
+unsigned AES3AudioBuffer::TicksDurationToFrames(vlc_tick_t t) const
 {
     return t * 48000 / CLOCK_FREQ;
 }
diff --git a/modules/stream_out/sdi/AES3Audio.hpp b/modules/stream_out/sdi/AES3Audio.hpp
index 09abe095f6..a88c5a9fc2 100644
--- a/modules/stream_out/sdi/AES3Audio.hpp
+++ b/modules/stream_out/sdi/AES3Audio.hpp
@@ -61,7 +61,7 @@ namespace sdi_sout
             size_t   FramesToBytes(unsigned) const;
             int64_t  FramesToDuration(unsigned) const;
             unsigned BytesToFrames(size_t) const;
-            unsigned TicksDurationToFrames(int64_t) const;
+            unsigned TicksDurationToFrames(vlc_tick_t) const;
             block_bytestream_t bytestream;
             mutable std::mutex bytestream_mutex;
             uint8_t buffersubframes;



More information about the vlc-commits mailing list