mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
improving readability of code
https://github.com/ynput/OpenPype/pull/5944#discussion_r1404643069
This commit is contained in:
parent
457f95e65a
commit
6b02f779b3
1 changed files with 4 additions and 4 deletions
|
|
@ -1259,10 +1259,10 @@ def get_rescaled_command_arguments(
|
|||
|
||||
# ffmpeg command
|
||||
input_file_metadata = get_ffprobe_data(input_path, logger=log)
|
||||
input_width = int(input_file_metadata["streams"][0]["width"])
|
||||
input_height = int(input_file_metadata["streams"][0]["height"])
|
||||
stream_input_par = input_file_metadata["streams"][0].get(
|
||||
"sample_aspect_ratio")
|
||||
stream = input_file_metadata["streams"][0]
|
||||
input_width = int(stream["width"])
|
||||
input_height = int(stream["height"])
|
||||
stream_input_par = stream[0].get("sample_aspect_ratio")
|
||||
if stream_input_par:
|
||||
input_par = (
|
||||
float(stream_input_par.split(":")[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue