diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-11 18:31:14 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-11 18:31:14 +0000 |
commit | be23f2ed52468b2f0af9ff6e4898a0f3e111a39c (patch) | |
tree | 78deceac16eb0136bb38b6ece8888fc5d602d137 /main/frame.c | |
parent | cb29b604102b7e11cfcbad7d4b6e1dc5ab7128b9 (diff) |
Merged revisions 269960 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r269960 | tilghman | 2010-06-11 13:23:05 -0500 (Fri, 11 Jun 2010) | 8 lines
For SpeeX, 0 bits remaining is valid and does not need an emitted warning.
(closes issue #15762)
Reported by: nblasgen
Patches:
issue15672.patch uploaded by pabelanger (license 224)
Tested by: nblasgen
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269976 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/frame.c')
-rw-r--r-- | main/frame.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/frame.c b/main/frame.c index af782edc2..a4a7f2d32 100644 --- a/main/frame.c +++ b/main/frame.c @@ -1406,7 +1406,9 @@ static int speex_samples(unsigned char *data, int len) } bit += off; - if ((len * 8 - bit) < 5) { + if ((len * 8 - bit) == 0) { + break; + } else if ((len * 8 - bit) < 5) { ast_log(LOG_WARNING, "Not enough bits remaining after wide band for speex samples.\n"); break; } |