mpegts: revert old change for NOHEADER, we will handle it on PMT instead
[vuplus_xbmc] / lib / ffmpeg / patches / 0016-Speed-up-mpegts-av_find_stream_info.patch
index 9281558..93dafee 100644 (file)
@@ -20,18 +20,6 @@ index c374cb9..6da6db5 100644
                          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