diff options
author | Steve L'Homme | 2006-11-06 23:07:54 +0000 |
---|---|---|
committer | Aurelien Jacobs | 2006-11-06 23:07:54 +0000 |
commit | b9756b2e39840e1eeb4cb4ccb9a2b79e19093130 (patch) | |
tree | 323018cf0e958ff7fa38011167e163fc434278ec | |
parent | 31693e00fc5f9d5b82138fc9963526de20df3530 (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
-rw-r--r-- | libavformat/matroska.c | 4 |
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; |