• Anton Khirnov's avatar
    mpegts: relax restrictions on matching the packet start in read_header · 1509c018
    Anton Khirnov authored
    analyze() is currently called both when probing and from read_header().
    It determines the packet start by looking for the sync byte, followed by
    unset Transport Error Indicator and valid adaptation_field_control.
    
    This makes sense to do when probing, but once we already know the format
    is MPEG-TS, it is counterproductive to be so strict -- e.g. in some
    files the TEI might be set and analyze() might get called with a smaller
    buffer than the one used for probing, resulting in a failure.
    1509c018
mpegts.c 75.7 KB