Commit c7a9cb60 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Another ptime fix

parent 6cd917a9
...@@ -826,7 +826,7 @@ rtp_set_ptime (sout_stream_id_t *id, unsigned ptime_ms, size_t bytes) ...@@ -826,7 +826,7 @@ rtp_set_ptime (sout_stream_id_t *id, unsigned ptime_ms, size_t bytes)
if (spl < rtp_mtu (id)) /* MTU is big enough for ptime */ if (spl < rtp_mtu (id)) /* MTU is big enough for ptime */
id->i_mtu = 12 + spl; id->i_mtu = 12 + spl;
else /* MTU is too small for ptime, align to a sample boundary */ else /* MTU is too small for ptime, align to a sample boundary */
id->i_mtu = (id->i_mtu / bytes) * bytes; id->i_mtu = 12 + (((id->i_mtu - 12) / bytes) * bytes);
} }
/** Add an ES as a new RTP stream */ /** Add an ES as a new RTP stream */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment