From 0cfc4f6730815a3d0613e7906dd6393a671dbd03 Mon Sep 17 00:00:00 2001 From: pingkai Date: Mon, 20 Jan 2020 17:57:42 +0800 Subject: [PATCH] fix(avFormatDemuxer): can play concat Signed-off-by: pingkai --- framework/demuxer/avFormatDemuxer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/demuxer/avFormatDemuxer.cpp b/framework/demuxer/avFormatDemuxer.cpp index dc92f48c2..3da6c59f5 100644 --- a/framework/demuxer/avFormatDemuxer.cpp +++ b/framework/demuxer/avFormatDemuxer.cpp @@ -93,6 +93,8 @@ namespace Cicada { } else { use_filename = true; } + av_dict_set_int(&mInputOpts, "safe", 0, 0); + av_dict_set(&mInputOpts, "protocol_whitelist", "file,http,https,tcp,tls", 0); /*If a url with mp4 ext name, but is not a mp4 file, the mp4 demuxer will be matched * by ext name , mp4 demuxer will try to find moov box, it will ignore the return value