Commit 3c8b8f2c authored by aurel's avatar aurel

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6922 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 55e8778e
...@@ -2209,6 +2209,10 @@ matroska_read_header (AVFormatContext *s, ...@@ -2209,6 +2209,10 @@ matroska_read_header (AVFormatContext *s,
st->codec->codec_id = codec_id; 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){ if(extradata){
st->codec->extradata = extradata; st->codec->extradata = extradata;
st->codec->extradata_size = extradata_size; st->codec->extradata_size = extradata_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment