mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
Calculate pts with double precision in demux_asf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23489 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -226,9 +226,9 @@ static int demux_asf_read_packet(demuxer_t *demux,unsigned char *data,int len,in
|
||||
dp=new_demux_packet(len);
|
||||
fast_memcpy(dp->buffer,data,len);
|
||||
if (asf->asf_is_dvr_ms)
|
||||
dp->pts=time*0.0000001f;
|
||||
dp->pts=time*0.0000001;
|
||||
else
|
||||
dp->pts=time*0.001f;
|
||||
dp->pts=time*0.001;
|
||||
dp->flags=keyframe;
|
||||
// if(ds==demux->video) printf("ASF time: %8d dur: %5d \n",time,dur);
|
||||
dp->pos=demux->filepos;
|
||||
|
||||
Reference in New Issue
Block a user