[fd/hls] Fix --hls-split-continuity support (#13321)
Authored by: tchebb
This commit is contained in:
parent
daa1859be1
commit
57186f958f
1 changed files with 2 additions and 2 deletions
|
|
@ -205,7 +205,7 @@ class HlsFD(FragmentFD):
|
|||
line = line.strip()
|
||||
if line:
|
||||
if not line.startswith('#'):
|
||||
if format_index and discontinuity_count != format_index:
|
||||
if format_index is not None and discontinuity_count != format_index:
|
||||
continue
|
||||
if ad_frag_next:
|
||||
continue
|
||||
|
|
@ -231,7 +231,7 @@ class HlsFD(FragmentFD):
|
|||
byte_range = {}
|
||||
|
||||
elif line.startswith('#EXT-X-MAP'):
|
||||
if format_index and discontinuity_count != format_index:
|
||||
if format_index is not None and discontinuity_count != format_index:
|
||||
continue
|
||||
if frag_index > 0:
|
||||
self.report_error(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue