Skip to content

Commit 7767f12

Browse files
Fix append of audio_pts (#5488)
Co-authored-by: Prabhat Roy <[email protected]>
1 parent 095437a commit 7767f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gallery/plot_video_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def example_read_video(video_object, start=0, end=None, read_video=True, read_au
158158
frames = []
159159
for frame in itertools.takewhile(lambda x: x['pts'] <= end, video_object.seek(start)):
160160
frames.append(frame['data'])
161-
video_pts.append(frame['pts'])
161+
audio_pts.append(frame['pts'])
162162
if len(frames) > 0:
163163
audio_frames = torch.cat(frames, 0)
164164

0 commit comments

Comments
 (0)