[vlc-commits] mkv: Use existing intermediate variable
Hugo Beauzée-Luyssen
git at videolan.org
Thu May 23 17:20:41 CEST 2019
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Feb 7 11:28:11 2019 +0100| [283253e21f295d230110d287b0be03aa6e74be74] | committer: Hugo Beauzée-Luyssen
mkv: Use existing intermediate variable
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=283253e21f295d230110d287b0be03aa6e74be74
---
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 f3dbf8c10b..8b2e1e76db 100644
--- a/modules/demux/mkv/util.cpp
+++ b/modules/demux/mkv/util.cpp
@@ -191,7 +191,7 @@ void handle_real_audio(demux_t * p_demux, mkv_track_t * p_tk, block_t * p_blk, v
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