Framereader: minor cleanup (#35577)

* No wrapping

* unused test

* another list

* mypy

* cleaner

* Revert "cleaner"

This reverts commit ccc1446b9d649d64b20175e22a66e135c44b21e5.

* mypy
This commit is contained in:
Harald Schäfer
2025-06-19 09:49:51 -07:00
committed by GitHub
parent 5f3d876aaa
commit 87a6e369aa
7 changed files with 10 additions and 73 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ fr = FrameReader(segments[segment])
if frame >= fr.frame_count:
raise Exception("frame {frame} not found, got {fr.frame_count} frames")
im = Image.fromarray(fr.get(frame)[0])
im = Image.fromarray(fr.get(frame))
fn = f"uxxx_{route.replace('|', '_')}_{segment}_{frame}.png"
im.save(fn)
print(f"saved {fn}")