ref: dd6dec9c0218c1993a1512eb04d8b594518402c2
parent: 9e3872a8161d657407c55b6a29882664d1a6320c
author: Timothy B. Terriberry <[email protected]>
date: Thu Dec 31 00:00:31 EST 2015
Fix pedantic build bustage. ISO C90 forbids mixed declarations and code, r=bustage
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -2455,11 +2455,12 @@
void *silk_enc;
silk_EncControlStruct dummy;
silk_enc = (char*)st+st->silk_enc_offset;
+ char *start;
#ifndef DISABLE_FLOAT_API
tonality_analysis_reset(&st->analysis);
#endif
- char *start = (char*)&st->OPUS_ENCODER_RESET_START;
+ start = (char*)&st->OPUS_ENCODER_RESET_START;
OPUS_CLEAR(start, sizeof(OpusEncoder) - (start - (char*)st));
celt_encoder_ctl(celt_enc, OPUS_RESET_STATE);