jitterbuffer: avoid using wrong clock-rate
Check for a valid clock-rate before attempting to estimate the npt stop time.
This commit is contained in:
parent
5682e2bf01
commit
8070ae967b
@ -1637,7 +1637,7 @@ push_buffer:
|
||||
|
||||
/* update the elapsed time when we need to check against the npt stop time. */
|
||||
if (priv->npt_stop != -1 && priv->ext_timestamp != -1
|
||||
&& priv->clock_base != -1) {
|
||||
&& priv->clock_base != -1 && priv->clock_rate > 0) {
|
||||
guint64 ext_time, elapsed, estimated;
|
||||
guint32 rtp_time;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user