summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-02-03 10:09:35 +0000
committerphintuka <phintuka>2010-02-03 10:09:35 +0000
commitff42ea107855c06e30e143bfd52897a69d803e90 (patch)
tree5e3fa915f257599b0a2f0dba1ddf7cd8b03b379e
parenta9109c232d3b368f5a84545d63b0f93983bb35f5 (diff)
downloadxineliboutput-ff42ea107855c06e30e143bfd52897a69d803e90.tar.gz
xineliboutput-ff42ea107855c06e30e143bfd52897a69d803e90.tar.bz2
ts_get_video_size(): aqdded missing start code search after PES header strip.
Fixes scanning if start code is in PES offsets 1...3.
-rw-r--r--tools/ts.c5
1 files changed, 4 insertions, 1 deletions
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 */