[vlc-commits] demux:mkv: remove redundant memset

Steve Lhomme git at videolan.org
Sat Jul 8 18:38:35 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Jul  6 11:16:32 2017 +0200| [380b0a9c06ee9c9c3db6a31b71cb05bbbba634bc] | committer: Jean-Baptiste Kempf

demux:mkv: remove redundant memset

It's already done in es_format_Init()

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 df44363bf5..9abed7b684 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");



More information about the vlc-commits mailing list