Hi,

On Wed, 2003-09-17 at 20:05, Brian Edmonds wrote:
> I haven't tried recording for months now, but this is one of the
> symptoms I had with my ongoing inability to record beyond 20 minutes.
> At a certain point the numbers would just go nutzo, and usually lavrec
> would bail with an audio sync error a few seconds later.

Does the attached patch help? Problem noticed by Steve Tell. Patch isn't
in CVS yet (lack of time, grmbl), but it should fix exactly this. (Issue
here is an integer overflow).

Ronald

-- 
Ronald Bultje <[EMAIL PROTECTED]>
*** mjpegtools-1.6.1/lavtools/audiolib.c~	Sat Jul  6 02:15:26 2002
--- mjpegtools-1.6.1/lavtools/audiolib.c	Tue Sep  9 00:27:17 2003
***************
*** 745,751 ****
  
  /* Calculate number of bytes corresponding to TIME_STAMP_TOL */
  
!    maxdiff = TIME_STAMP_TOL*audio_byte_rate/1000000;
  
  /*
   * Check that the device has capability to do mmap and trigger
--- 745,751 ----
  
  /* Calculate number of bytes corresponding to TIME_STAMP_TOL */
  
!    maxdiff = (int) (((double)TIME_STAMP_TOL)*audio_byte_rate/1000000.0);
  
  /*
   * Check that the device has capability to do mmap and trigger

Reply via email to