summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-02-14 00:55:52 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-02-14 00:55:52 +0000
commit229f6cf61107b1f6c70ee51fe95789f4b77f6341 (patch)
tree9ee8d1be2ec75d45a7632003612110414b363d9c
parentdd7b5d84dddb0454525832384f6d81ebbe98edf8 (diff)
downloadxine-lib-229f6cf61107b1f6c70ee51fe95789f4b77f6341.tar.gz
xine-lib-229f6cf61107b1f6c70ee51fe95789f4b77f6341.tar.bz2
avoid allocating random sized buffer
CVS patchset: 4150 CVS date: 2003/02/14 00:55:52
-rw-r--r--src/libxineadec/adpcm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libxineadec/adpcm.c b/src/libxineadec/adpcm.c
index c3a419131..12ac4c6da 100644
--- a/src/libxineadec/adpcm.c
+++ b/src/libxineadec/adpcm.c
@@ -24,7 +24,7 @@
* formats can be found here:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: adpcm.c,v 1.27 2003/01/08 01:02:30 miguelfreitas Exp $
+ * $Id: adpcm.c,v 1.28 2003/02/14 00:55:52 miguelfreitas Exp $
*/
#include <stdio.h>
@@ -1247,7 +1247,10 @@ static void adpcm_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->out_block_size =
(this->in_block_size -
(MS_IMA_ADPCM_PREAMBLE_SIZE * this->channels)) * 2;
- break;
+ break;
+
+ default:
+ this->out_block_size = 0;
}
/* allocate 2 bytes per sample */