changeset 2886:8fa014a92350 libavformat

use one shift less in get_pts()
author ivo
date Thu, 03 Jan 2008 10:02:46 +0000
parents 266321e9b978
children 9148847ac072
files mpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg.c	Thu Jan 03 02:12:08 2008 +0000
+++ b/mpeg.c	Thu Jan 03 10:02:46 2008 +0000
@@ -125,7 +125,7 @@
 
     if (c < 0)
         c = get_byte(pb);
-    pts = (int64_t)((c >> 1) & 0x07) << 30;
+    pts = (int64_t)(c & 0x0e) << 29;
     val = get_be16(pb);
     pts |= (int64_t)(val >> 1) << 15;
     val = get_be16(pb);