Skip to content
  • Mikhail Fludkov's avatar
    audiodecoder: fix invalid timestamps when PLC and delay · 8d4f79b6
    Mikhail Fludkov authored
    Elements inherited from GstAudioDecoder, supporting PLC and introducing
    delay produce invalid timestamps. Good example is opusdec with in-band FEC
    enabled. After receiving GAP event it delays the audio concealment until
    the next buffer arrives. The next buffer will have DISCONT flag set which
    will make GstAudioDecoder to reset it's internal state, thus forgetting
    the timestamp of GAP event. As a result the concealed audio will have the
    timestamp of the next buffer (with DISCONT flag) but not the timestamp
    from the event.
    8d4f79b6