From 94f6c011d692a37f8d70a32dff57779b93f4bba9 Mon Sep 17 00:00:00 2001
From: Aurelien Jacobs <aurel@gnuage.org>
Date: Tue, 3 Jun 2008 15:09:30 +0000
Subject: [PATCH] matroskadec: sane default value for track->time_scale

Originally committed as revision 13646 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/matroskadec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index c2b46ae9f77..e6d35bc5b4c 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 */
-- 
GitLab