Fix of a potential bug found by ruff.
This commit is contained in:
+4
-1
@@ -2983,9 +2983,12 @@ def extract_all_streams(ffmpeg_path:str, ffprobe_path:str, input_file:IO[bytes],
|
|||||||
# Merge a list of mkv files passed as input, and produce a new MKV as output
|
# Merge a list of mkv files passed as input, and produce a new MKV as output
|
||||||
@typechecked
|
@typechecked
|
||||||
def merge_mkvs(mkvmerge_path:str, inputs: list[IO[bytes]], output_name:str,
|
def merge_mkvs(mkvmerge_path:str, inputs: list[IO[bytes]], output_name:str,
|
||||||
concatenate: bool=True, timestamps: dict[int, IO[str]]={}) -> IO[bytes]|None:
|
concatenate: bool=True, timestamps: dict[int, IO[str]] | None = None) -> IO[bytes]|None:
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
if timestamps is None:
|
||||||
|
timestamps = {}
|
||||||
|
|
||||||
fds = []
|
fds = []
|
||||||
try:
|
try:
|
||||||
out = open(output_name, 'wb+')
|
out = open(output_name, 'wb+')
|
||||||
|
|||||||
Reference in New Issue
Block a user