Skip to content

Commit c50fb3e

Browse files
committed
Docs
1 parent 0a64619 commit c50fb3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pims/display.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ def export_pyav(sequence, filename, rate=30, bitrate=None,
124124

125125
output = av.open(str(filename), str('w'), format=format)
126126
try:
127+
# from PyAv 6.0, options can be supplied here
127128
stream = output.add_stream(
128129
codec, rate=export_rate_frac, options=options
129130
)
130-
except TypeError: # pyav 0.4 compat: supply options at .open
131+
except TypeError: # before, we should supply it at .open
131132
output = av.open(
132133
str(filename), str('w'), format=format, options=options
133134
)

0 commit comments

Comments
 (0)