From d77f708dc2307abb3da32cedaf4360e36390ee5f Mon Sep 17 00:00:00 2001 From: jlw4049 Date: Fri, 21 Jun 2024 14:59:46 -0400 Subject: [PATCH] fix: bug since VapourSynth v65 where we not byte strings was trying to be decoded for FFMS2 --- frame_forge/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frame_forge/__init__.py b/frame_forge/__init__.py index a3798d6..d9e435c 100644 --- a/frame_forge/__init__.py +++ b/frame_forge/__init__.py @@ -465,9 +465,11 @@ class GenerateImages: ) try: + pict_types = ("B", b"B") for i, frame in enumerate(b_frames): while ( - self.encode_node.get_frame(frame).props["_PictType"].decode() != "B" + self.encode_node.get_frame(frame).props["_PictType"] + not in pict_types ): frame += 1 b_frames[i] = frame