Skip to content

Commit ac36e82

Browse files
committed
Get pix_fmt even if format is None
1 parent e696e37 commit ac36e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_editor/ffwrapper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def initFileInfo(path: str, log: Log) -> FileInfo:
232232
vdur,
233233
sar,
234234
v.time_base,
235-
cc.pix_fmt,
235+
getattr(v.format, "name", None),
236236
cc.color_range,
237237
cc.colorspace,
238238
cc.color_primaries,

0 commit comments

Comments
 (0)