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

TS Extractor: Fix problem with corrupt last PCR in recordings #9100

Closed

Commits on Jun 22, 2021

  1. TS Extractor: Fix problem with corrupt last PCR in recordings

    Some recorded TV shows are picking up a corrupt value for last PCR in the
    file. The result is that the recording only plays for a few seconds. In
    the example provided, the duration came out as a large negative number,
    and the file played for a few seconds and then reported playback as complete.
    
    The logic in TsDurationReader searches backwards in the file looking
    for a valid PCR. Either it is picking up a corrupt value or it is
    mis-interpreting other data as if it was a PCR.
    
    The fix searches for two PCR values and performs a sanity check to
    ensure they are within valid range before accepting the value. If they
    are not valid, it continues searching until it finds valid values.
    bennettpeter committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    39b8bf6 View commit details
    Browse the repository at this point in the history