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

Flush and reset internal state after seek #2264

Closed
wants to merge 1 commit into from

Commits on Feb 28, 2022

  1. Flush and reset internal state after seek (pytorch#2264)

    Summary:
    This commit adds the following behavior to `seek` so that `seek`
    works after a frame is decoded.
    
    1. Flush the decoder buffer.
    2. Recreate filter graphs (so that internal state is re-initialized)
    3. Discard the buffered tensor. (decoded chunks)
    
    Also it disallows negative values for seek timestamp.
    
    Pull Request resolved: pytorch#2264
    
    Differential Revision: D34497826
    
    Pulled By: mthrok
    
    fbshipit-source-id: d4b0c9edcd4357c4164c62d7e1c41cba6cad60f4
    mthrok committed Feb 28, 2022
    Configuration menu
    Copy the full SHA
    f97a00a View commit details
    Browse the repository at this point in the history