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
This commit is contained in:
parent
31693e00fc
commit
b9756b2e39
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user