Skip to content

Commit f705f68

Browse files
prabhat00155facebook-github-bot
authored andcommitted
[fbsync] Fix append of audio_pts (#5488)
Summary: Co-authored-by: Prabhat Roy <[email protected]> Reviewed By: datumbox Differential Revision: D34579501 fbshipit-source-id: 306c2c51f5d00a4f3c68770f42d8b6b04f68afb3
1 parent e520c48 commit f705f68

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)