Skip to content

Commit

Permalink
lib/hls_support.cpp: don't care about alignment if there's no LL-HLS
Browse files Browse the repository at this point in the history
  • Loading branch information
iameli committed Aug 15, 2022
1 parent 3bde23d commit 2c33311
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hls_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ namespace HLS{
/// keyframe alginment is a MUST for LLHLS track switch
bool checkFramesAlignment(std::stringstream &result, const DTSC::Meta &M,
const MasterData &masterData, const size_t trackId){
if (masterData.noLLHLS || !serverSupport.tags) {
return true;
}
bool keyFramesAligned =
masterData.mainTrack == trackId || M.keyTimingsMatch(masterData.mainTrack, trackId);
if (!keyFramesAligned){
Expand Down

0 comments on commit 2c33311

Please sign in to comment.