Skip to content

Commit

Permalink
time_base cannot be None
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Nov 19, 2024
1 parent c29cb86 commit ce48bfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion av/container/output.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
from fractions import Fraction

cimport libav as lib

Expand Down Expand Up @@ -186,7 +187,7 @@ cdef class OutputContainer(Container):
elif template.type == "audio":
py_stream.time_base = kwargs.pop("time_base", 1 / template.rate)
else:
py_stream.time_base = kwargs.pop("time_base", None)
py_stream.time_base = kwargs.pop("time_base", Fraction(0, 1))

for k, v in kwargs.items():
setattr(py_stream, k, v)
Expand Down

0 comments on commit ce48bfa

Please sign in to comment.