[asterisk-bugs] [Asterisk 0017934]: [patch] downsampling slinear16 to slinear (or ulaw or alaw or g729) results in truncation

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Aug 31 14:17:09 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17934 
====================================================================== 
Reported By:                palbrecht
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17934
Category:                   Codecs/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.2.11 
JIRA:                       SWP-2136 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-08-31 13:33 CDT
Last Modified:              2010-08-31 14:17 CDT
====================================================================== 
Summary:                    [patch] downsampling slinear16 to slinear (or ulaw
or alaw or g729) results in truncation
Description: 
When I translate from AST_FORMAT_SLINEAR16 to AST_FORMAT_SLINEAR the output
frame is truncated, specifically, instead of 160 samples I get 137 samples.
The result is the same for ulaw and alaw. For g729, the output is truncated
to 80 samples.
====================================================================== 

---------------------------------------------------------------------- 
 (0126489) russell (administrator) - 2010-08-31 14:17
 https://issues.asterisk.org/view.php?id=17934#c126489 
---------------------------------------------------------------------- 
I wrote a small unit test module to test this out and was able to reproduce
it.  The output frame has 137 samples every time. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-31 14:17 russell        Note Added: 0126489                          
======================================================================




More information about the asterisk-bugs mailing list