Commit d7785bd5 authored by Damien Fouilleul's avatar Damien Fouilleul

dshow.cpp: fill in frame rate info (if demuxing)

parent 3f180b7f
...@@ -530,6 +530,8 @@ static int DemuxOpen( vlc_object_t *p_this ) ...@@ -530,6 +530,8 @@ 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;
} }
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