diff options
Diffstat (limited to 'main')
-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 cb78800fe..854bc3781 100644 --- a/main/frame.c +++ b/main/frame.c @@ -1394,7 +1394,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; } |