mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 01:46:16 +00:00
Use double-precision constants instead of single precision that gets cast to double.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30299 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2b3a5105ff
commit
e38bcd7d05
@ -1398,10 +1398,10 @@ static int pes_parse2(unsigned char *buf, uint16_t packet_len, ES_stream_t *es,
|
||||
pts |= p[12] << 7 ;
|
||||
pts |= (p[13] & 0xFE) >> 1 ;
|
||||
|
||||
es->pts = pts / (double)90000.0f;
|
||||
es->pts = pts / 90000.0;
|
||||
}
|
||||
else
|
||||
es->pts = 0.0f;
|
||||
es->pts = 0.0;
|
||||
|
||||
|
||||
header_len = p[8];
|
||||
@ -3094,7 +3094,7 @@ static int ts_parse(demuxer_t *demuxer , ES_stream_t *es, unsigned char *packet,
|
||||
}
|
||||
else
|
||||
{
|
||||
if(es->pts == 0.0f)
|
||||
if(es->pts == 0.0)
|
||||
es->pts = tss->pts = tss->last_pts;
|
||||
else
|
||||
tss->pts = tss->last_pts = es->pts;
|
||||
|
Loading…
Reference in New Issue
Block a user