mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
- Fix the last set of places where incorrect assumptions were made about the
sample length with g722. It is _2_ samples per byte, not 1. This was all over the place, and I believed it, and it is what caused me to take so long to figure out what was broken. - Update copyright information on codec_g722. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1372,9 +1372,9 @@ int ast_codec_get_samples(struct ast_frame *f)
|
||||
break;
|
||||
case AST_FORMAT_ULAW:
|
||||
case AST_FORMAT_ALAW:
|
||||
case AST_FORMAT_G722:
|
||||
samples = f->datalen;
|
||||
break;
|
||||
case AST_FORMAT_G722:
|
||||
case AST_FORMAT_ADPCM:
|
||||
case AST_FORMAT_G726:
|
||||
case AST_FORMAT_G726_AAL2:
|
||||
@@ -1410,9 +1410,9 @@ int ast_codec_get_len(int format, int samples)
|
||||
break;
|
||||
case AST_FORMAT_ULAW:
|
||||
case AST_FORMAT_ALAW:
|
||||
case AST_FORMAT_G722:
|
||||
len = samples;
|
||||
break;
|
||||
case AST_FORMAT_G722:
|
||||
case AST_FORMAT_ADPCM:
|
||||
case AST_FORMAT_G726:
|
||||
case AST_FORMAT_G726_AAL2:
|
||||
|
Reference in New Issue
Block a user