aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-06-03 15:09:30 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-06-03 15:09:30 +0000
commit94f6c011d692a37f8d70a32dff57779b93f4bba9 (patch)
tree70f5f16e17350d35bc76cc8480575b9437f0598b /libavformat/matroskadec.c
parente85754cc3641ebd7f3f9e47d66c033d2e279791d (diff)
downloadffmpeg-94f6c011d692a37f8d70a32dff57779b93f4bba9.tar.gz
matroskadec: sane default value for track->time_scale
Originally committed as revision 13646 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index c2b46ae9f7..e6d35bc5b4 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 */