avdevice/dshow: Fix frame rate

Fixes: Ticket5526

Tested-by: kgp700

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-06-07 02:32:13 +02:00
parent a2b2af791c
commit e7f658be57
1 changed files with 1 additions and 0 deletions

View File

@ -953,6 +953,7 @@ dshow_add_device(AVFormatContext *avctx,
}
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->width = bih->biWidth;