• Jean-Paul Saman's avatar
    src/dvbpsi.c: dvbpsi_decoder_psi_sections_completed: detect gaps in multi section psi tables · 6d7d5422
    Jean-Paul Saman authored
    The function dvbpsi_decoder_psi_sections_completed() is meant to detect if all
    sections of a multi section psi table have arrived. After the rewrite in
    commit-id 57c6cd63 it ignored gaps in the arrived sections. This means that
    the function now expects that individual sections of multi section psi tables
    arrive in order. However the ISO/IEC 13818-1 standard explains in Annex C, C 2ii
    that it is allowed to transmit sections out of order.
    
     "The section_number field allows the sections of a particular table to be reassembled
      in their original order by the decoder. There is no obligation within this Recommendation
      | International Standard that sections must be transmitted in numerical order, but this
      is recommended, unless it is desired to transmit some sections of the table more frequently
      than others, e.g. due to random access considerations."
    
    The p_decoder->p_sections linked list is sequentially ordered and is now changed to detect
    a gap in the ordering. This is possible because the first section in a multi-section psi table
    is numbered 0.
    6d7d5422
dvbpsi.c 25.8 KB