Commit e7f658be authored by Michael Niedermayer's avatar Michael Niedermayer

avdevice/dshow: Fix frame rate

Fixes: Ticket5526

Tested-by: kgp700
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a2b2af79
...@@ -953,6 +953,7 @@ dshow_add_device(AVFormatContext *avctx, ...@@ -953,6 +953,7 @@ dshow_add_device(AVFormatContext *avctx,
} }
st->avg_frame_rate = av_inv_q(time_base); st->avg_frame_rate = av_inv_q(time_base);
st->r_frame_rate = av_inv_q(time_base);
par->codec_type = AVMEDIA_TYPE_VIDEO; par->codec_type = AVMEDIA_TYPE_VIDEO;
par->width = bih->biWidth; par->width = bih->biWidth;
......
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