diff mpeg.c @ 2886:8fa014a92350 libavformat

use one shift less in get_pts()
author ivo
date Thu, 03 Jan 2008 10:02:46 +0000
parents 2d7817482abc
children e5dfe3c96f3b
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);