summaryrefslogtreecommitdiff
path: root/tools/ts.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ts.c')
-rw-r--r--tools/ts.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/ts.c b/tools/ts.c
index 637d34ef..4fafbb03 100644
--- a/tools/ts.c
+++ b/tools/ts.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: ts.c,v 1.9 2009-06-29 15:47:44 phintuka Exp $
+ * $Id: ts.c,v 1.10 2009-07-01 09:31:17 phintuka Exp $
*
*/
@@ -483,17 +483,17 @@ int ts_parse_pmt (pmt_data_t *pmt, uint program_no, const uint8_t *pkt)
int64_t ts_get_pcr(const uint8_t *pkt)
{
if (!ts_ADAPT_FIELD_EXISTS(pkt)) {
- return INT64_C(-1);
+ return NO_PTS;
}
if (ts_HAS_ERROR(pkt)) {
LOGMSG("ts_get_pcr: transport error");
- return INT64_C(-1);
+ return NO_PTS;
}
/* pcr flag ? */
if (! (pkt[5] & 0x10))
- return INT64_C(-1);
+ return NO_PTS;
int64_t pcr;
uint epcr;
@@ -642,7 +642,7 @@ static int ts_get_pes(ts_state_t *ts, const uint8_t *data)
int64_t ts_get_pts(ts_state_t *ts, const uint8_t *data)
{
- int64_t pts = INT64_C(-1);
+ int64_t pts = NO_PTS;
int cnt = ts_get_pes(ts, data);
if (cnt > 14) {