diff options
author | phintuka <phintuka> | 2010-02-03 10:09:35 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-02-03 10:09:35 +0000 |
commit | ff42ea107855c06e30e143bfd52897a69d803e90 (patch) | |
tree | 5e3fa915f257599b0a2f0dba1ddf7cd8b03b379e | |
parent | a9109c232d3b368f5a84545d63b0f93983bb35f5 (diff) | |
download | xineliboutput-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 */ |