av_dlog(ts->stream, "tuning done\n");
- /* only flag NOHEADER if we are in file mode,
- in streaming mode scanning may take too long for users */
- if (pb->seekable)
- s->ctx_flags |= AVFMTCTX_NOHEADER;
+ s->ctx_flags |= AVFMTCTX_NOHEADER;
} else {
AVStream *st;
int pcr_pid, pid, nb_packets, nb_pcrs, ret, pcr_l;
pes->st = avformat_new_stream(ts->stream, NULL);
if (!pes->st)
return AVERROR(ENOMEM);
-@@ -2013,7 +2013,10 @@ static int mpegts_read_header(AVFormatContext *s,
-
- av_dlog(ts->stream, "tuning done\n");
-
-- s->ctx_flags |= AVFMTCTX_NOHEADER;
-+ /* only flag NOHEADER if we are in file mode,
-+ in streaming mode scanning may take too long for users */
-+ if (pb->seekable)
-+ s->ctx_flags |= AVFMTCTX_NOHEADER;
- } else {
- AVStream *st;
- int pcr_pid, pid, nb_packets, nb_pcrs, ret, pcr_l;
--
1.7.9.4