changeset 7735:197cee6aa59e

always use rounded-up blocksize for .avi files (fixes Firestarter.mpg.avi)
author arpi
date Mon, 14 Oct 2002 01:39:17 +0000
parents cbd13de4dc93
children b81b0ab0aa40
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Oct 13 23:28:29 2002 +0000
+++ b/mplayer.c	Mon Oct 14 01:39:17 2002 +0000
@@ -1665,8 +1665,9 @@
 
     if(pts_from_bps){
 	// PTS = sample_no / samplerate
-        unsigned int samples=(sh_audio->audio.dwSampleSize)?
-          ((ds_tell(d_audio)-sh_audio->a_in_buffer_len)/sh_audio->audio.dwSampleSize) :
+        unsigned int samples=
+//	  (sh_audio->audio.dwSampleSize)?
+//          ((ds_tell(d_audio)-sh_audio->a_in_buffer_len)/sh_audio->audio.dwSampleSize) :
           (d_audio->block_no); // <- used for VBR audio
 	samples+=sh_audio->audio.dwStart; // offset
         a_pts=samples*(float)sh_audio->audio.dwScale/(float)sh_audio->audio.dwRate;