[vlc-devel] commit: ps demux: fix overlook when fixing timestamps (Pierre Ynard )
git version control
git at videolan.org
Tue Dec 22 20:16:58 CET 2009
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Dec 22 20:15:29 2009 +0100| [3a5d4f38f1c51f8e92a3b6e3f341c7ae28131191] | committer: Pierre Ynard
ps demux: fix overlook when fixing timestamps
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3a5d4f38f1c51f8e92a3b6e3f341c7ae28131191
---
modules/demux/ps.h | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/modules/demux/ps.h b/modules/demux/ps.h
index 3edca03..457276e 100644
--- a/modules/demux/ps.h
+++ b/modules/demux/ps.h
@@ -460,19 +460,19 @@ static inline int ps_pkt_parse_pes( block_t *p_pes, int i_skip_extra )
if( header[i_skip]&0x20 )
{
- p_pes->i_pts = ((mtime_t)(header[i_skip]&0x0e ) << 29)|
- (mtime_t)(header[i_skip+1] << 22)|
- ((mtime_t)(header[i_skip+2]&0xfe) << 14)|
- (mtime_t)(header[i_skip+3] << 7)|
- (mtime_t)(header[i_skip+4] >> 1);
+ i_pts = ((mtime_t)(header[i_skip]&0x0e ) << 29)|
+ (mtime_t)(header[i_skip+1] << 22)|
+ ((mtime_t)(header[i_skip+2]&0xfe) << 14)|
+ (mtime_t)(header[i_skip+3] << 7)|
+ (mtime_t)(header[i_skip+4] >> 1);
if( header[i_skip]&0x10 ) /* has dts */
{
- p_pes->i_dts = ((mtime_t)(header[i_skip+5]&0x0e ) << 29)|
- (mtime_t)(header[i_skip+6] << 22)|
- ((mtime_t)(header[i_skip+7]&0xfe) << 14)|
- (mtime_t)(header[i_skip+8] << 7)|
- (mtime_t)(header[i_skip+9] >> 1);
+ i_dts = ((mtime_t)(header[i_skip+5]&0x0e ) << 29)|
+ (mtime_t)(header[i_skip+6] << 22)|
+ ((mtime_t)(header[i_skip+7]&0xfe) << 14)|
+ (mtime_t)(header[i_skip+8] << 7)|
+ (mtime_t)(header[i_skip+9] >> 1);
i_skip += 10;
}
else
More information about the vlc-devel
mailing list