mpegts: revert old change for NOHEADER, we will handle it on PMT instead
authorJoakim Plate <elupus@ecce.se>
Sat, 14 Dec 2013 11:13:17 +0000 (12:13 +0100)
committerJoakim Plate <elupus@ecce.se>
Sat, 14 Dec 2013 11:13:17 +0000 (12:13 +0100)
lib/ffmpeg/libavformat/mpegts.c
lib/ffmpeg/patches/0016-Speed-up-mpegts-av_find_stream_info.patch

index 4f25686..9b9c47e 100644 (file)
@@ -2101,10 +2101,7 @@ static int mpegts_read_header(AVFormatContext *s)
 
         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;
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