diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index b8f02ab8c5ddd5509ddce2dd026ee3398a46e020..e9b984dc117b8e810cb78236295f438daafa3391 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1470,10 +1470,6 @@ static int mpegts_read_header(AVFormatContext *s,
     if (ap) {
         if (ap->mpeg2ts_compute_pcr)
             ts->mpeg2ts_compute_pcr = ap->mpeg2ts_compute_pcr;
-        if(ap->mpeg2ts_raw){
-            av_log(s, AV_LOG_ERROR, "use mpegtsraw_demuxer!\n");
-            return -1;
-        }
     }
 #endif