[vlc-devel] commit: Fix g726 packetizing : forgot to compute the padding, but we don' t need it ( Rafaël Carré )

git version control git at videolan.org
Thu Sep 4 17:54:36 CEST 2008


vlc | branch: master | Rafaël Carré <rcarre at m2x.nl> | Thu Sep  4 17:53:46 2008 +0200| [52c11814434e412fed940ffa9b4f1d9f2db56d47] | committer: Rafaël Carré 

Fix g726 packetizing : forgot to compute the padding, but we don't need it

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

 modules/stream_out/rtpfmt.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/stream_out/rtpfmt.c b/modules/stream_out/rtpfmt.c
index 0b8b488..16719c8 100644
--- a/modules/stream_out/rtpfmt.c
+++ b/modules/stream_out/rtpfmt.c
@@ -703,20 +703,20 @@ static int rtp_packetize_g726( sout_stream_id_t *id, block_t *in, int i_pad )
 
 int rtp_packetize_g726_16( sout_stream_id_t *id, block_t *in )
 {
-    return rtp_packetize_g726( id, in, 16 );
+    return rtp_packetize_g726( id, in, 4 );
 }
 
 int rtp_packetize_g726_24( sout_stream_id_t *id, block_t *in )
 {
-    return rtp_packetize_g726( id, in, 24 );
+    return rtp_packetize_g726( id, in, 8 );
 }
 
 int rtp_packetize_g726_32( sout_stream_id_t *id, block_t *in )
 {
-    return rtp_packetize_g726( id, in, 32 );
+    return rtp_packetize_g726( id, in, 2 );
 }
 
 int rtp_packetize_g726_40( sout_stream_id_t *id, block_t *in )
 {
-    return rtp_packetize_g726( id, in, 40 );
+    return rtp_packetize_g726( id, in, 8 );
 }




More information about the vlc-devel mailing list