[vlc-commits] mkv: Use existing intermediate variable

Hugo Beauzée-Luyssen git at videolan.org
Thu May 23 17:40:12 CEST 2019


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Feb  7 11:28:11 2019 +0100| [b49f20b6d816cd37b2682bda16caf26b0bfcaa59] | committer: Hugo Beauzée-Luyssen

mkv: Use existing intermediate variable

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
(cherry picked from commit 283253e21f295d230110d287b0be03aa6e74be74)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/demux/mkv/util.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/util.cpp b/modules/demux/mkv/util.cpp
index d2bdaef555..9ce884154a 100644
--- a/modules/demux/mkv/util.cpp
+++ b/modules/demux/mkv/util.cpp
@@ -190,7 +190,7 @@ void handle_real_audio(demux_t * p_demux, mkv_track_t * p_tk, block_t * p_blk, m
         p_tk->fmt.i_codec == VLC_CODEC_ATRAC3 )
     {
         const uint16_t i_num = p_sys->i_frame_size / p_sys->i_subpacket_size;
-        const size_t y = p_sys->i_subpacket / ( p_sys->i_frame_size / p_sys->i_subpacket_size );
+        const size_t y = p_sys->i_subpacket / i_num;
 
         for( uint16_t i = 0; i < i_num; i++ )
         {



More information about the vlc-commits mailing list