fix: bug since VapourSynth v65 where we not byte strings was trying to be decoded for FFMS2

This commit is contained in:
jlw4049 2024-06-21 14:59:46 -04:00
parent 358ae81525
commit d77f708dc2

@ -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