20.03.2024, 15:59
just to provide an example.
nframes=3
max_frames = 3
if (n < max_frames)
stop when n=3
for i in range(1, 3)
are processed only the frames:
3 - 1 = 2
3 - 2 = 1
current frame (n=3) is allocated at the begin on the list
so the list contains the frames: 3, 2, 1
so I don't see the risk to access non available frames.
Dan
nframes=3
max_frames = 3
if (n < max_frames)
stop when n=3
for i in range(1, 3)
are processed only the frames:
3 - 1 = 2
3 - 2 = 1
current frame (n=3) is allocated at the begin on the list
so the list contains the frames: 3, 2, 1
so I don't see the risk to access non available frames.
Dan