comparison grab_bktr.c @ 885:da1d5db0ce5c libavformat

COSMETICS: Remove all trailing whitespace.
author diego
date Sat, 17 Dec 2005 18:14:38 +0000
parents 8d9d16641fe0
children edbe5c3717f9
comparison
equal deleted inserted replaced
884:2ece9c9dd94c 885:da1d5db0ce5c
172 return -1; 172 return -1;
173 } 173 }
174 174
175 video_buf_size = width * height * 12 / 8; 175 video_buf_size = width * height * 12 / 8;
176 176
177 video_buf = (uint8_t *)mmap((caddr_t)0, video_buf_size, 177 video_buf = (uint8_t *)mmap((caddr_t)0, video_buf_size,
178 PROT_READ, MAP_SHARED, *video_fd, (off_t)0); 178 PROT_READ, MAP_SHARED, *video_fd, (off_t)0);
179 if (video_buf == MAP_FAILED) { 179 if (video_buf == MAP_FAILED) {
180 perror("mmap"); 180 perror("mmap");
181 return -1; 181 return -1;
182 } 182 }
183 183
184 if (frequency != 0.0) { 184 if (frequency != 0.0) {
185 ioctl_frequency = (unsigned long)(frequency*16); 185 ioctl_frequency = (unsigned long)(frequency*16);
186 if (ioctl(*tuner_fd, TVTUNER_SETFREQ, &ioctl_frequency) < 0) 186 if (ioctl(*tuner_fd, TVTUNER_SETFREQ, &ioctl_frequency) < 0)
187 perror("TVTUNER_SETFREQ"); 187 perror("TVTUNER_SETFREQ");
188 } 188 }
189 189
190 c = AUDIO_UNMUTE; 190 c = AUDIO_UNMUTE;