Changeset 4893

Show
Ignore:
Timestamp:
12/12/10 21:33:42 (3 years ago)
Author:
douglask
Message:

Explicitly set AvgTimePerFrame?, otherwise capture fps may be very low with webcams

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/mpeg4/video/grabber-win32DS.cpp

    r4892 r4893  
    10581058                    // AvgTimePerFrame value that specifies the video frame' 
    10591059                    // average display time, in 100-nanosecond units. 
    1060                     //if (fps_) 
    1061                     //pVih->AvgTimePerFrame = 10000000/fps_; 
     1060                    if (fps_) 
     1061                        pVih->AvgTimePerFrame = 10000000/fps_; 
    10621062 
    10631063                    debug_msg("fps_= %d, AvgTimePerFrame: %d\n", fps_, pVih->AvgTimePerFrame);