davidfischer-ch / pytoolbox

Toolbox for Python scripts.
Other
41 stars 15 forks source link

Bug: FEC reset at sequence wraparound #36

Closed TobbeEdgeware closed 5 years ago

TobbeEdgeware commented 5 years ago

Thanks for nice software. I use it for some testing and found that the FecGenerator has a bug at sequence number wrap-around.

on_reset() reports

       Media seq=0 is out of sequence (expected 0) : FEC algorithm resetted !

This is due to the line generator.py:208 which reads

        if self._media_sequence and media.sequence == self._media_sequence:

but should read

       if self._media_sequence is not None and media.sequence == self._media_sequence: