changeset 1454:d7b946a1ec57 libavformat

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
author aurel
date Mon, 06 Nov 2006 23:07:54 +0000
parents c0235bab9e92
children e0e7ac1b8601
files matroska.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/matroska.c	Mon Nov 06 21:58:43 2006 +0000
+++ b/matroska.c	Mon Nov 06 23:07:54 2006 +0000
@@ -2209,6 +2209,10 @@
 
             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;