From 3d94e3ba932b0dd6541630f2c0294579a220e0cd Mon Sep 17 00:00:00 2001 From: Ivo van Poorten Date: Thu, 3 Jan 2008 10:02:46 +0000 Subject: [PATCH] use one shift less in get_pts() Originally committed as revision 11383 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 47b459e..3101c2a 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -125,7 +125,7 @@ static int64_t get_pts(ByteIOContext *pb, int c) 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); -- 2.7.4