summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/muxmkv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libhb/muxmkv.c b/libhb/muxmkv.c
index 303d98878..addd800de 100644
--- a/libhb/muxmkv.c
+++ b/libhb/muxmkv.c
@@ -196,8 +196,6 @@ static int MKVInit( hb_mux_object_t * m )
mux_data->track = mk_createTrack(m->file, track);
- memset(track, 0, sizeof(mk_TrackConfig));
-
/* add the audio tracks */
for( i = 0; i < hb_list_count( title->list_audio ); i++ )
{
@@ -207,7 +205,8 @@ static int MKVInit( hb_mux_object_t * m )
mux_data->codec = audio->config.out.codec;
- switch( audio->config.out.codec & HB_ACODEC_MASK )
+ memset(track, 0, sizeof(mk_TrackConfig));
+ switch (audio->config.out.codec & HB_ACODEC_MASK)
{
case HB_ACODEC_DCA:
case HB_ACODEC_DCA_HD: