]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpeg.c
Remove check for @ in tcp.c which removes the authorization data from the
[ffmpeg] / libavformat / mpeg.c
index 7c4f7d9313c8e2cdfcb6839b538d1c12d81150ea..fc98ab82b2c0704c9a1d9c74c69b35cfa016e586 100644 (file)
@@ -459,7 +459,7 @@ static int mpegps_read_packet(AVFormatContext *s,
         if(!memcmp(buf, avs_seqh, 4) && (buf[6] != 0 || buf[7] != 1))
             codec_id = CODEC_ID_CAVS;
         else
-            codec_id = CODEC_ID_MPEG2VIDEO;
+            codec_id = CODEC_ID_PROBE;
         type = CODEC_TYPE_VIDEO;
     } else if (startcode >= 0x1c0 && startcode <= 0x1df) {
         type = CODEC_TYPE_AUDIO;
@@ -586,5 +586,5 @@ AVInputFormat mpegps_demuxer = {
     NULL,
     NULL, //mpegps_read_seek,
     mpegps_read_dts,
-    .flags = AVFMT_SHOW_IDS,
+    .flags = AVFMT_SHOW_IDS|AVFMT_TS_DISCONT,
 };