[vlc-devel] commit: Another ptime fix ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Jun 11 20:43:44 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jun 11 21:45:27 2008 +0300| [c7a9cb6023cc1036e4e1762fd5c96956afc6216d]

Another ptime fix

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c7a9cb6023cc1036e4e1762fd5c96956afc6216d
---

 modules/stream_out/rtp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 8ce770f..6a25c86 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -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 */
         id->i_mtu = 12 + spl;
     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 */




More information about the vlc-devel mailing list