Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h

Issue 2255203002: iLBC: Handle a case of bad input data (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h b/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h
index b676ef97ad27576aebe362172dc05af9f8442d6f..7bf00872e2c1657459760e18058f28ad86fecd2d 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h
+++ b/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h
@@ -25,14 +25,14 @@
* Construct decoded vector from codebook and gains.
*---------------------------------------------------------------*/
-void WebRtcIlbcfix_CbConstruct(
- int16_t *decvector, /* (o) Decoded vector */
- int16_t *index, /* (i) Codebook indices */
- int16_t *gain_index, /* (i) Gain quantization indices */
- int16_t *mem, /* (i) Buffer for codevector construction */
- size_t lMem, /* (i) Length of buffer */
- size_t veclen /* (i) Length of vector */
- );
-
+// Returns true on success, false on failure.
hlundin-webrtc 2016/08/23 07:55:26 True, false, int. Will it blend...
+int WebRtcIlbcfix_CbConstruct(
+ int16_t* decvector, /* (o) Decoded vector */
+ int16_t* index, /* (i) Codebook indices */
+ int16_t* gain_index, /* (i) Gain quantization indices */
+ int16_t* mem, /* (i) Buffer for codevector construction */
+ size_t lMem, /* (i) Length of buffer */
+ size_t veclen /* (i) Length of vector */
+ ) WARN_UNUSED_RESULT;
#endif

Powered by Google App Engine
This is Rietveld 408576698