]> git.sesse.net Git - vlc/commitdiff
* modules/demux/wav/wav.c: small bug-fix for screwed pts calculation.
authorGildas Bazin <gbazin@videolan.org>
Tue, 10 Dec 2002 23:34:19 +0000 (23:34 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 10 Dec 2002 23:34:19 +0000 (23:34 +0000)
modules/demux/wav/wav.c

index c95ac4fe8f8f783fcad11dd25c7677232691f123..e4c8cc677302cd2ba3344f0e6253aff7df417350 100644 (file)
@@ -2,7 +2,7 @@
  * wav.c : wav file input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: wav.c,v 1.6 2002/12/06 16:34:07 sam Exp $
+ * $Id: wav.c,v 1.7 2002/12/10 23:34:19 gbazin Exp $
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  * 
  * This program is free software; you can redistribute it and/or modify
@@ -283,7 +283,7 @@ static int PCM_GetFrame( input_thread_t *p_input,
                  (mtime_t)i_samples / 
                  (mtime_t)p_wf->nSamplesPerSec;
 
-    i_bytes = i_samples * p_wf->nChannels * ( p_wf->wBitsPerSample + 7 ) / 8;
+    i_bytes = i_samples * p_wf->nChannels * ( (p_wf->wBitsPerSample + 7) / 8 );
     
     if( p_wf->nBlockAlign > 0 )
     {