[asterisk-commits] file: branch 1.4 r64278 -
	/branches/1.4/codecs/codec_speex.c
    asterisk-commits at lists.digium.com 
    asterisk-commits at lists.digium.com
       
    Mon May 14 11:48:33 MST 2007
    
    
  
Author: file
Date: Mon May 14 13:48:33 2007
New Revision: 64278
URL: http://svn.digium.com/view/asterisk?view=rev&rev=64278
Log:
Properly set datalen field when doing PLC in codec_speex. (issue #9722 reported by mihai)
Modified:
    branches/1.4/codecs/codec_speex.c
Modified: branches/1.4/codecs/codec_speex.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/codecs/codec_speex.c?view=diff&rev=64278&r1=64277&r2=64278
==============================================================================
--- branches/1.4/codecs/codec_speex.c (original)
+++ branches/1.4/codecs/codec_speex.c Mon May 14 13:48:33 2007
@@ -220,6 +220,7 @@
 		}
 #endif
 		pvt->samples += tmp->framesize;
+		pvt->datalen += 2 * tmp->framesize; /* 2 bytes/sample */
 		return 0;
 	}
 
    
    
More information about the asterisk-commits
mailing list