Mercurial > mplayer.hg
comparison mplayer.c @ 6871:88953ff93743
count blocks by rounded-up chunksizes instead of chunks -
we need full emulation of dshow avi demuxer bugs :(
fixes silly nandub-style a-v delaying in avi with vbr mp3...
author | arpi |
---|---|
date | Fri, 02 Aug 2002 17:44:16 +0000 |
parents | a3867d6e2c11 |
children | 2dde1a1bc03a |
comparison
equal
deleted
inserted
replaced
6870:dad5f8b3e8a0 | 6871:88953ff93743 |
---|---|
1767 | 1767 |
1768 if(pts_from_bps){ | 1768 if(pts_from_bps){ |
1769 // PTS = sample_no / samplerate | 1769 // PTS = sample_no / samplerate |
1770 unsigned int samples=(sh_audio->audio.dwSampleSize)? | 1770 unsigned int samples=(sh_audio->audio.dwSampleSize)? |
1771 ((ds_tell(d_audio)-sh_audio->a_in_buffer_len)/sh_audio->audio.dwSampleSize) : | 1771 ((ds_tell(d_audio)-sh_audio->a_in_buffer_len)/sh_audio->audio.dwSampleSize) : |
1772 (d_audio->pack_no); // <- used for VBR audio | 1772 (d_audio->block_no); // <- used for VBR audio |
1773 samples+=sh_audio->audio.dwStart; // offset | 1773 samples+=sh_audio->audio.dwStart; // offset |
1774 a_pts=samples*(float)sh_audio->audio.dwScale/(float)sh_audio->audio.dwRate; | 1774 a_pts=samples*(float)sh_audio->audio.dwScale/(float)sh_audio->audio.dwRate; |
1775 delay_corrected=1; | 1775 delay_corrected=1; |
1776 } else { | 1776 } else { |
1777 // PTS = (last timestamp) + (bytes after last timestamp)/(bytes per sec) | 1777 // PTS = (last timestamp) + (bytes after last timestamp)/(bytes per sec) |