Skip to content

Commit ebe035f

Browse files
committed
Check for None
1 parent 8127d19 commit ebe035f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: auto_editor/ffwrapper.py

+4
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ def initFileInfo(path: str, log: Log) -> FileInfo:
217217

218218
sar = Fraction(1) if v.sample_aspect_ratio is None else v.sample_aspect_ratio
219219
cc = v.codec_context
220+
221+
if v.name is None:
222+
log.error(f"Can't detect codec for video stream {v}")
223+
220224
videos += (
221225
VideoStream(
222226
v.width,

0 commit comments

Comments
 (0)