Skip to content

Commit

Permalink
Don't use frame.index in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Feb 16, 2024
1 parent c34aae2 commit 1eb416b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Basic Demo

container = av.open(path_to_video)

for frame in container.decode(video=0):
frame.to_image().save('frame-%04d.jpg' % frame.index)
for index, frame in enumerate(container.decode(video=0)):
frame.to_image().save(f"frame-{index:04d}.jpg")


Overview
Expand Down

0 comments on commit 1eb416b

Please sign in to comment.