diff libmpdemux/demux_avi.c @ 3302:e75454b489df

using audio.dwStart too... (for baittest.avi)
author arpi
date Tue, 04 Dec 2001 00:26:45 +0000
parents 17f46b2330e9
children 80256840ff29
line wrap: on
line diff
--- a/libmpdemux/demux_avi.c	Mon Dec 03 22:30:47 2001 +0000
+++ b/libmpdemux/demux_avi.c	Tue Dec 04 00:26:45 2001 +0000
@@ -608,6 +608,7 @@
 	    curr_audio_pos*=align;
 #else
 	    curr_audio_pos=(priv->avi_video_pts)*(float)sh_audio->audio.dwRate/(float)sh_audio->audio.dwScale;
+	    curr_audio_pos-=sh_audio->audio.dwStart;
 	    curr_audio_pos*=sh_audio->audio.dwSampleSize;
 #endif