rtpdec: Fix the calculation of expected number of packets