OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-sbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66d3538
)
sbc: Don't decode a frame if it is too small
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 23 Dec 2008 22:41:38 +0000
(23:41 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 30 Jul 2012 02:48:27 +0000
(19:48 -0700)
sbc/sbc.c
patch
|
blob
|
history
diff --git
a/sbc/sbc.c
b/sbc/sbc.c
index
5411893
..
a3a3ac1
100644
(file)
--- a/
sbc/sbc.c
+++ b/
sbc/sbc.c
@@
-1196,6
+1196,9
@@
int sbc_decode(sbc_t *sbc, void *input, int input_len, void *output,
if (written)
*written = 0;
+ if (framelen <= 0)
+ return framelen;
+
samples = sbc_synthesize_audio(&priv->dec_state, &priv->frame);
ptr = output;