[vlc-commits] demux:mkv: fix wrong value reset after clean of an array

Steve Lhomme git at videolan.org
Thu May 23 17:20:44 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 11 09:00:06 2019 +0100| [d1d41b3f849d4e260c1ec09c5b1bb53db7f8107f] | committer: Hugo Beauzée-Luyssen

demux:mkv: fix wrong value reset after clean of an array

https://hackerone.com/reports/491495

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

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

diff --git a/modules/demux/mkv/util.cpp b/modules/demux/mkv/util.cpp
index 1b5ded064c..b25e850dc0 100644
--- a/modules/demux/mkv/util.cpp
+++ b/modules/demux/mkv/util.cpp
@@ -178,6 +178,7 @@ void handle_real_audio(demux_t * p_demux, mkv_track_t * p_tk, block_t * p_blk, v
                 p_sys->p_subpackets[i] = NULL;
             }
         p_sys->i_subpacket = 0;
+        p_sys->i_subpackets = 0;
 
         if ( !( p_blk->i_flags & BLOCK_FLAG_TYPE_I) )
         {
@@ -237,6 +238,7 @@ void handle_real_audio(demux_t * p_demux, mkv_track_t * p_tk, block_t * p_blk, v
             p_sys->p_subpackets[i] = NULL;
         }
         p_sys->i_subpacket = 0;
+        p_sys->i_subpackets = 0;
     }
 }
 



More information about the vlc-commits mailing list