mirror of
https://github.com/mpv-player/mpv
synced 2025-04-23 23:56:20 +00:00
fixed wrong operator precedence in parse_mpeg4_video()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18164 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
471dc6e589
commit
aa0de16882
@ -2139,7 +2139,7 @@ static size_t parse_mpeg4_video(muxer_stream_t *s, muxer_priv_t *priv, muxer_hea
|
||||
delta = vpriv->picture.timeinc_unit - vpriv->last_tr;
|
||||
if((delta > 0) && (delta > (vpriv->picture.timeinc_resolution/2)))
|
||||
delta -= vpriv->picture.timeinc_resolution;
|
||||
else if((delta < 0) && (delta < (-vpriv->picture.timeinc_resolution/2)))
|
||||
else if((delta < 0) && (delta < (-(vpriv->picture.timeinc_resolution/2))))
|
||||
delta += vpriv->picture.timeinc_resolution;
|
||||
|
||||
delta_pts = (27000000 * (int64_t) delta) / vpriv->picture.timeinc_resolution;
|
||||
|
Loading…
Reference in New Issue
Block a user