Commit 9aec8c5a authored by michael's avatar michael

partially revert r2931 (Support raw mpegts streams from dvr)

the change was wrong


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9219 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 68472b36
...@@ -1155,13 +1155,6 @@ static int mpegts_read_header(AVFormatContext *s, ...@@ -1155,13 +1155,6 @@ static int mpegts_read_header(AVFormatContext *s,
url_fseek(pb, pos, SEEK_SET); url_fseek(pb, pos, SEEK_SET);
mpegts_scan_sdt(ts); mpegts_scan_sdt(ts);
if (ts->nb_services <= 0 && 0) {
/* raw transport stream */
ts->auto_guess = 1;
s->ctx_flags |= AVFMTCTX_NOHEADER;
goto do_pcr;
}
mpegts_set_service(ts); mpegts_set_service(ts);
handle_packets(ts, s->probesize); handle_packets(ts, s->probesize);
...@@ -1182,7 +1175,6 @@ static int mpegts_read_header(AVFormatContext *s, ...@@ -1182,7 +1175,6 @@ static int mpegts_read_header(AVFormatContext *s,
/* only read packets */ /* only read packets */
do_pcr:
st = av_new_stream(s, 0); st = av_new_stream(s, 0);
if (!st) if (!st)
goto fail; goto fail;
......
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