Browse Source

scan s->probesize packets instead of MAX_SCAN_PACKETS (that is still the default value)

Originally committed as revision 6110 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Nico Sabbi 19 years ago
parent
commit
ec6913d267
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavformat/mpegts.c

+ 3
- 3
libavformat/mpegts.c View File

@@ -1203,7 +1203,7 @@ goto_auto_guess:
url_fseek(pb, pos, SEEK_SET);
mpegts_scan_sdt(ts);

handle_packets(ts, MAX_SCAN_PACKETS);
handle_packets(ts, s->probesize);

if (ts->nb_services <= 0) {
/* no SDT found, we try to look at the PAT */
@@ -1217,7 +1217,7 @@ goto_auto_guess:
url_fseek(pb, pos, SEEK_SET);
mpegts_scan_pat(ts);

handle_packets(ts, MAX_SCAN_PACKETS);
handle_packets(ts, s->probesize);
}

if (ts->nb_services <= 0) {
@@ -1241,7 +1241,7 @@ goto_auto_guess:
url_fseek(pb, pos, SEEK_SET);
mpegts_set_service(ts, sid, set_service_cb, ts);

handle_packets(ts, MAX_SCAN_PACKETS);
handle_packets(ts, s->probesize);
}
/* if could not find service, exit */



Loading…
Cancel
Save