Changeset 3953 for pjproject/trunk/pjmedia/src/pjmedia-videodev/dshow_dev.c
- Timestamp:
- Feb 16, 2012 8:49:33 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-videodev/dshow_dev.c
r3934 r3953 770 770 video_info->bmiHeader.biHeight = vfd->size.h; 771 771 } 772 if (!use_def_fps && vfd->fps.num != 0) 772 if (video_info->AvgTimePerFrame == 0 || 773 (!use_def_fps && vfd->fps.num != 0)) 774 { 773 775 video_info->AvgTimePerFrame = (LONGLONG) (10000000 * 774 776 (double)vfd->fps.denum / 775 777 vfd->fps.num); 778 } 776 779 video_info->bmiHeader.biSizeImage = DIBSIZE(video_info->bmiHeader); 777 780 mediatype->lSampleSize = DIBSIZE(video_info->bmiHeader);
Note: See TracChangeset
for help on using the changeset viewer.