Skip to content

Commit

Permalink
fix(avFormatDemuxer): can play concat
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Jan 20, 2020
1 parent afcd0f0 commit 0cfc4f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/demuxer/avFormatDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cfc4f6

Please sign in to comment.