summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Larrick <doug@ties.org>2003-10-15 18:06:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-10-15 18:06:44 +0000
commit66535069da888862e8392191810c8401459c49cf (patch)
tree57a973c7063a87c006669657cc96fd6f608630d4
parentf539eb52fe400eee7b47605ca7ee3a6b54bfb101 (diff)
Enable decoding of more mpeg-ts streams for pcHDTV patch by (Doug Larrick <doug at ties dot org>)
Originally committed as revision 2390 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mpegts.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index bcee8826c2..bd6b64da90 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -975,7 +975,13 @@ static int mpegts_read_header(AVFormatContext *s,
if (ts->nb_services <= 0) {
/* no SDT found, we try to look at the PAT */
-
+
+ /* First remove the SDT filters from each PID */
+ int i;
+ for (i=0; i < NB_PID_MAX; i++) {
+ if (ts->pids[i])
+ mpegts_close_filter(ts, ts->pids[i]);
+ }
url_fseek(pb, pos, SEEK_SET);
mpegts_scan_pat(ts);