Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[torchcodec] stream_index should not be optional for getting frame by index #24

Closed
wants to merge 1 commit into from
Closed

[torchcodec] stream_index should not be optional for getting frame by index #24

wants to merge 1 commit into from

Conversation

scotts
Copy link
Contributor

@scotts scotts commented Jun 13, 2024

Summary: Making stream_index optional on get_frame_by_index() and get_frames_by_indices() was a mistake. The C++ method we're calling, VideoDecoder::getFrameAtIndex() and VideoDecoder::getFramesAtIndexes() needs the actual stream index. It can't take -1 as the default as I had assumed.

Differential Revision: D58505608

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Meta Open Source bot. fb-exported labels Jun 13, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D58505608

2 similar comments
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D58505608

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D58505608

… index (#24)

Summary:
Pull Request resolved: #24

Making `stream_index` optional on `get_frame_by_index()` and `get_frames_by_indices()` was a mistake. The C++ method we're calling, `VideoDecoder::getFrameAtIndex()` and `VideoDecoder::getFramesAtIndexes()` needs the actual stream index. It can't take -1 as the default as I had assumed.

Reviewed By: NicolasHug

Differential Revision: D58505608
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D58505608

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1f677ed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants