From c64f15775ff0d41cf779c17fc3f76442f68035ee Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 1 Jul 2009 09:31:17 +0000 Subject: #define NO_PTS --- tools/ts.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/ts.c') 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) { -- cgit v1.2.3