]> git.sesse.net Git - vlc/commitdiff
dshow.cpp: fill in frame rate info (if demuxing)
authorDamien Fouilleul <damienf@videolan.org>
Sat, 21 May 2005 20:55:45 +0000 (20:55 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Sat, 21 May 2005 20:55:45 +0000 (20:55 +0000)
modules/access/dshow/dshow.cpp

index b9d3ccbed11bcfec561f720d73779a19c0e2870e..c041cef940d76406d7949a072d8b5d606e2c8aef 100644 (file)
@@ -530,6 +530,8 @@ static int DemuxOpen( vlc_object_t *p_this )
                 fmt.video.i_gmask = 0x0000ff00;
                 fmt.video.i_rmask = 0x000000ff;
             }
+            fmt.video.i_frame_rate = 10000000000ULL/p_stream->header.video.AvgTimePerFrame;
+            fmt.video.i_frame_rate_base = 1000;
         }
         else if( p_stream->mt.majortype == MEDIATYPE_Audio )
         {