Changeset 1570d3b930aa91134823eb658c0a033094f8fce9
- Timestamp:
- 30/01/04 02:09:24
(5 years ago)
- Author:
- Laurent Aimar <fenrir@videolan.org>
- git-committer:
- Laurent Aimar <fenrir@videolan.org> 1075424964 +0000
- git-parent:
[43ef6e102f38dec34888b83829f7d5f9d97566be]
- git-author:
- Laurent Aimar <fenrir@videolan.org> 1075424964 +0000
- Message:
- ps: lalalala, fixed a bug in dts/pts parsing.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf16f6c6 |
r1570d3b |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2004 VideoLAN |
|---|
| 5 | | * $Id: ps.h,v 1.4 2004/01/29 18:37:05 fenrir Exp $ |
|---|
| | 5 | * $Id: ps.h,v 1.5 2004/01/30 01:09:24 fenrir Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 240 | 240 | ((mtime_t)(header[11]&0xfe) << 14)| |
|---|
| 241 | 241 | (mtime_t)(header[12] << 7)| |
|---|
| 242 | | (mtime_t)(header[12] >> 1); |
|---|
| | 242 | (mtime_t)(header[13] >> 1); |
|---|
| 243 | 243 | |
|---|
| 244 | 244 | if( header[7]&0x40 ) /* has dts */ |
|---|
| 245 | 245 | { |
|---|
| 246 | | p_pes->i_dts = ((mtime_t)(header[13]&0x0e ) << 29)| |
|---|
| 247 | | (mtime_t)(header[14] << 22)| |
|---|
| 248 | | ((mtime_t)(header[15]&0xfe) << 14)| |
|---|
| 249 | | (mtime_t)(header[16] << 7)| |
|---|
| 250 | | (mtime_t)(header[17] >> 1); |
|---|
| | 246 | p_pes->i_dts = ((mtime_t)(header[14]&0x0e ) << 29)| |
|---|
| | 247 | (mtime_t)(header[15] << 22)| |
|---|
| | 248 | ((mtime_t)(header[16]&0xfe) << 14)| |
|---|
| | 249 | (mtime_t)(header[17] << 7)| |
|---|
| | 250 | (mtime_t)(header[18] >> 1); |
|---|
| 251 | 251 | } |
|---|
| 252 | 252 | } |
|---|