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
This commit is contained in:
Doug Larrick 2003-10-15 18:06:44 +00:00 committed by Michael Niedermayer
parent f539eb52fe
commit 66535069da

View File

@ -976,6 +976,12 @@ static int mpegts_read_header(AVFormatContext *s,
if (ts->nb_services <= 0) { if (ts->nb_services <= 0) {
/* no SDT found, we try to look at the PAT */ /* 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); url_fseek(pb, pos, SEEK_SET);
mpegts_scan_pat(ts); mpegts_scan_pat(ts);