From ff42ea107855c06e30e143bfd52897a69d803e90 Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 3 Feb 2010 10:09:35 +0000 Subject: ts_get_video_size(): aqdded missing start code search after PES header strip. Fixes scanning if start code is in PES offsets 1...3. --- tools/ts.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/ts.c') diff --git a/tools/ts.c b/tools/ts.c index 96f5d61e..4ee80abb 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.19 2010-02-02 23:49:33 phintuka Exp $ + * $Id: ts.c,v 1.20 2010-02-03 10:09:35 phintuka Exp $ * */ @@ -700,6 +700,9 @@ int ts_get_video_size(ts_state_t *ts, const uint8_t *data, video_size_t *size, i /* Skip PES header */ ts_skip_payload(ts, PES_HEADER_LEN(ts->buf)); ts->inside_pes = 1; + + /* move to first ES header */ + ts_scan_startcode(ts); } /* scan for start code */ -- cgit v1.2.3