[vlc-devel] [PATCH 5/9] demux:mkv: remove redundant memset

Steve Lhomme robux4 at videolabs.io
Thu Jul 6 12:58:07 CEST 2017


It's already done in es_format_Init()
---
 modules/demux/mkv/matroska_segment_parse.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 38195c265a..23b6cfeb53 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -225,7 +225,6 @@ void matroska_segment_c::ParseTrackEntry( const KaxTrackEntry *m )
     track.i_last_dts             = 0;
     track.i_skip_until_fpos      = -1;
 
-    std::memset(    &track.fmt, 0, sizeof( track.fmt ) );
     es_format_Init( &track.fmt, UNKNOWN_ES, 0 );
 
     track.fmt.psz_language       = strdup("English");
-- 
2.12.1



More information about the vlc-devel mailing list