changeset 283:dcc3f5510818 libavformat

Enable decoding of more mpeg-ts streams for pcHDTV patch by (Doug Larrick <doug at ties dot org>)
author michael
date Wed, 15 Oct 2003 18:06:44 +0000
parents a864d92bf6b8
children c77ce17451a1
files mpegts.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Wed Oct 15 15:21:46 2003 +0000
+++ b/mpegts.c	Wed Oct 15 18:06:44 2003 +0000
@@ -975,7 +975,13 @@
 
         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);