Changeset 4215
- Timestamp:
- 07/14/08 08:30:51 (5 years ago)
- Files:
-
- 1 modified
-
vic/branches/mpeg4/video/grabber-v4l2.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vic/branches/mpeg4/video/grabber-v4l2.cpp
r4183 r4215 1074 1074 1075 1075 while ( !format_ok ) { 1076 width_ = CIF_WIDTH *2 / decimate_; 1077 height_ = CIF_HEIGHT *2 / decimate_; 1076 if (decimate_ > 0) { 1077 width_ = CIF_WIDTH *2 / decimate_; 1078 height_ = CIF_HEIGHT *2 / decimate_; 1079 } 1078 1080 1079 1081 debug_msg("V4L2: format"); … … 1140 1142 break; 1141 1143 case 1: 1142 debug_msg("V4L2: trying resolution under ...\n"); 1143 decimate_ = 2; 1144 debug_msg("V4L2: falling back to resolution %dx%d\n", fmt.fmt.pix.width, fmt.fmt.pix.height); 1145 decimate_ = 0; 1146 width_ = fmt.fmt.pix.width; 1147 height_ = fmt.fmt.pix.height; 1144 1148 break; 1145 1149 default:
