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

Avoid returning a negative value from Field.get_linelen #638

Merged
merged 1 commit into from
May 1, 2021

Commits on Apr 30, 2021

  1. Avoid returning a negative value from Field.get_linelen.

    A sufficiently messed-up frame (e.g. a player skip) can cause the
    linelocs list to be non-monotonic. In PAL mode, ld-decode correctly
    reports the TBC failure, but then crashes because demod_pilot is empty.
    
    Fix this by returning the default line length if the length would
    otherwise be zero or negative.
    atsampson committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    86ac14a View commit details
    Browse the repository at this point in the history