We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78268fa commit 7d75d1aCopy full SHA for 7d75d1a
1 file changed
src/ffmpegio/streams/SimpleStreams.py
@@ -220,6 +220,7 @@ def _finalize(self, ffmpeg_args):
220
has_fg = configure.has_filtergraph(ffmpeg_args, "video")
221
222
pix_fmt = outopts.get("pix_fmt", None)
223
+ pix_fmt_in = s_in = r_in = None
224
if (
225
pix_fmt is None
226
and not has_fg
@@ -234,8 +235,7 @@ def _finalize(self, ffmpeg_args):
234
235
r_in = info["frame_rate"]
236
except:
237
pix_fmt_in = 'rgb24'
- else:
238
- pix_fmt_in = s_in = r_in = None
+
239
240
if pix_fmt_in is None and pix_fmt is None:
241
raise ValueError("pix_fmt must be specified.")
0 commit comments