Commit e62bd19a authored by nicodvb's avatar nicodvb

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6110 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2d0b69dc
...@@ -1203,7 +1203,7 @@ goto_auto_guess: ...@@ -1203,7 +1203,7 @@ goto_auto_guess:
url_fseek(pb, pos, SEEK_SET); url_fseek(pb, pos, SEEK_SET);
mpegts_scan_sdt(ts); mpegts_scan_sdt(ts);
handle_packets(ts, MAX_SCAN_PACKETS); handle_packets(ts, s->probesize);
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 */
...@@ -1217,7 +1217,7 @@ goto_auto_guess: ...@@ -1217,7 +1217,7 @@ goto_auto_guess:
url_fseek(pb, pos, SEEK_SET); url_fseek(pb, pos, SEEK_SET);
mpegts_scan_pat(ts); mpegts_scan_pat(ts);
handle_packets(ts, MAX_SCAN_PACKETS); handle_packets(ts, s->probesize);
} }
if (ts->nb_services <= 0) { if (ts->nb_services <= 0) {
...@@ -1241,7 +1241,7 @@ goto_auto_guess: ...@@ -1241,7 +1241,7 @@ goto_auto_guess:
url_fseek(pb, pos, SEEK_SET); url_fseek(pb, pos, SEEK_SET);
mpegts_set_service(ts, sid, set_service_cb, ts); 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 */ /* if could not find service, exit */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment