diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-11 18:23:05 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-11 18:23:05 +0000 |
commit | b8d995ef8e9bc33a238105faaa36a2151cef4875 (patch) | |
tree | f6da32dd7daa84add6958d4c4782d24adc2c5348 /main/frame.c | |
parent | 5a709f5560b222b9aca9ebc79de5c1cf63ff6d21 (diff) |
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/branches/1.4@269960 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 d35769488..560cf1a53 100644 --- a/main/frame.c +++ b/main/frame.c @@ -1451,7 +1451,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; } |