Commit 03766aa5 authored by Gildas Bazin's avatar Gildas Bazin

* modules/access/dshow/dshow.cpp: bug fix for frame rate.

parent 3eec11db
...@@ -530,8 +530,13 @@ static int DemuxOpen( vlc_object_t *p_this ) ...@@ -530,8 +530,13 @@ static int DemuxOpen( vlc_object_t *p_this )
fmt.video.i_gmask = 0x0000ff00; fmt.video.i_gmask = 0x0000ff00;
fmt.video.i_rmask = 0x000000ff; fmt.video.i_rmask = 0x000000ff;
} }
fmt.video.i_frame_rate = 10000000000ULL/p_stream->header.video.AvgTimePerFrame;
fmt.video.i_frame_rate_base = 1000; if( p_stream->header.video.AvgTimePerFrame )
{
fmt.video.i_frame_rate = 10000000;
fmt.video.i_frame_rate_base =
p_stream->header.video.AvgTimePerFrame;
}
} }
else if( p_stream->mt.majortype == MEDIATYPE_Audio ) else if( p_stream->mt.majortype == MEDIATYPE_Audio )
{ {
......
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