summaryrefslogtreecommitdiff
path: root/libavformat/matroska.c
diff options
context:
space:
mode:
authorSteve L'Homme <slhomme@divxcorp.com>2006-11-06 23:07:54 +0000
committerAurelien Jacobs <aurel@gnuage.org>2006-11-06 23:07:54 +0000
commitb9756b2e39840e1eeb4cb4ccb9a2b79e19093130 (patch)
tree323018cf0e958ff7fa38011167e163fc434278ec /libavformat/matroska.c
parent31693e00fc5f9d5b82138fc9963526de20df3530 (diff)
guess matroska files frame rate
Patch by Steve Lhomme % slhomme A divxcorp P com % Original thread: Date: Mon, 06 Nov 2006 21:28:52 +0100 Subject: [Ffmpeg-devel] [PATCH] Matroska FPS info Originally committed as revision 6922 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroska.c')
-rw-r--r--libavformat/matroska.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/matroska.c b/libavformat/matroska.c
index ee42392344..1cca2929b4 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -2209,6 +2209,10 @@ matroska_read_header (AVFormatContext *s,
st->codec->codec_id = codec_id;
+ if (track->default_duration)
+ av_reduce(&st->codec->time_base.num, &st->codec->time_base.den,
+ track->default_duration, 1000000000, 30000);
+
if(extradata){
st->codec->extradata = extradata;
st->codec->extradata_size = extradata_size;