Skip to content

Commit

Permalink
Check for None
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Mar 19, 2024
1 parent f209a8f commit 4627870
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auto_editor/ffwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ def initFileInfo(path: str, log: Log) -> FileInfo:

sar = Fraction(1) if v.sample_aspect_ratio is None else v.sample_aspect_ratio
cc = v.codec_context

if v.name is None:
log.error(f"Can't detect codec for video stream {v}")

videos += (
VideoStream(
v.width,
Expand Down

0 comments on commit 4627870

Please sign in to comment.