[FFmpeg-cvslog] r11383 - trunk/libavformat/mpeg.c
ivo
subversion
Thu Jan 3 11:02:46 CET 2008
Author: ivo
Date: Thu Jan 3 11:02:46 2008
New Revision: 11383
Log:
use one shift less in get_pts()
Modified:
trunk/libavformat/mpeg.c
Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c (original)
+++ trunk/libavformat/mpeg.c Thu Jan 3 11:02:46 2008
@@ -125,7 +125,7 @@ static int64_t get_pts(ByteIOContext *pb
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);
More information about the ffmpeg-cvslog
mailing list