Skip to content
  • Jan Schmidt's avatar
    qtmux: Remove bogus check in atom_stsc_add_new_entry() · db0eddb1
    Jan Schmidt authored
    Remove an old check from atom_stsc_add_new_entry() that
    extends the last entry in the STSC if the samples per chunk
    matches, as the new interleave merging logic requires that
    the final entry by updateable. There's already code
    below which simply merges the final entry into the previous
    one when needed, so rely on that instead.
    
    Fixes asserts like:
    
    ERROR:atoms.c:2940:atom_stsc_update_entry: assertion failed:
    (atom_array_index (&stsc->entries, len - 1).first_chunk == first_chunk)
    db0eddb1