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

workaround when reading broken video frames #5726

Closed

Commits on Dec 23, 2021

  1. workaround when reading broken video frames

    Some videos are being read with additional fake/broken frames that may
    cause an unexpected early exit. This attempts to skip over these broken
    frames if more were expected, based on the initally acquired frame
    count.
    
    According to other reports upstream, the number of broken frames read
    varies. To avoid getting stuck in an endless loop, e.g. when the video
    is actually broken, this gives up after 1000 reads.
    
    see ultralytics#2064
    see opencv/opencv#15352
    breunigs committed Dec 23, 2021
    Configuration menu
    Copy the full SHA
    7cafb37 View commit details
    Browse the repository at this point in the history