Try using lseek(2) instead of fseek(3):
if (lseek( ifd, 2352, SEEK_SET ) == (off_t)-1) /* seek 1 frame in */
return 1;
Maybe mixing fseek(3) and read(2) is not ok?
Anyway, thats only a wild guess, you should ask on the fbsd ML or freebsdforum.
Last edited by ephemera; 13th April 2009 at 04:19 PM.
|