comparison 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
comparison
equal deleted inserted replaced
3301:308d3031af6b 3302:e75454b489df
606 if(sh_audio->wf->nBlockAlign>align) align=sh_audio->wf->nBlockAlign; 606 if(sh_audio->wf->nBlockAlign>align) align=sh_audio->wf->nBlockAlign;
607 curr_audio_pos/=align; 607 curr_audio_pos/=align;
608 curr_audio_pos*=align; 608 curr_audio_pos*=align;
609 #else 609 #else
610 curr_audio_pos=(priv->avi_video_pts)*(float)sh_audio->audio.dwRate/(float)sh_audio->audio.dwScale; 610 curr_audio_pos=(priv->avi_video_pts)*(float)sh_audio->audio.dwRate/(float)sh_audio->audio.dwScale;
611 curr_audio_pos-=sh_audio->audio.dwStart;
611 curr_audio_pos*=sh_audio->audio.dwSampleSize; 612 curr_audio_pos*=sh_audio->audio.dwSampleSize;
612 #endif 613 #endif
613 614
614 // find audio chunk pos: 615 // find audio chunk pos:
615 for(i=0;i<chunk_max;i++){ 616 for(i=0;i<chunk_max;i++){