summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorIvo van Poorten <ivop@euronet.nl>2008-01-03 10:02:46 +0000
committerIvo van Poorten <ivop@euronet.nl>2008-01-03 10:02:46 +0000
commit3d94e3ba932b0dd6541630f2c0294579a220e0cd (patch)
tree30b39a2a4bbb31cf783faef9cdac4cb42c448ae2 /libavformat/mpeg.c
parentb44665c4e648cb04aa4328b80e178f1ef3d85ff5 (diff)
use one shift less in get_pts()
Originally committed as revision 11383 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 47b459ee63..3101c2a30f 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);