diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index c2b46ae9f77600535356570c75e9ebfafa38ed91..e6d35bc5b4cb5a230474781ce9a32551268dee60 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1030,6 +1030,7 @@ matroska_add_stream (MatroskaDemuxContext *matroska)
 
     /* Allocate a generic track. As soon as we know its type we'll realloc. */
     track = av_mallocz(MAX_TRACK_SIZE);
+    track->time_scale = 1.0;
     strcpy(track->language, "eng");
 
     /* try reading the trackentry headers */