changeset 18163:1e4caa08161d

fixed wrong operator precedence in parse_mpeg4_video()
author nicodvb
date Thu, 20 Apr 2006 20:44:43 +0000
parents 1b4bf0c9ecb3
children c692440493c8
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Thu Apr 20 20:38:09 2006 +0000
+++ b/libmpdemux/muxer_mpeg.c	Thu Apr 20 20:44:43 2006 +0000
@@ -2139,7 +2139,7 @@
 			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;