dec_API.c | dec_API.c | |||
---|---|---|---|---|
skipping to change at line 72 | skipping to change at line 72 | |||
opus_int silk_InitDecoder( /* O Returns err or code */ | opus_int silk_InitDecoder( /* O Returns err or code */ | |||
void *decState /* I/O State */ | void *decState /* I/O State */ | |||
) | ) | |||
{ | { | |||
opus_int n, ret = SILK_NO_ERROR; | opus_int n, ret = SILK_NO_ERROR; | |||
silk_decoder_state *channel_state = ((silk_decoder *)decState)->channel _state; | silk_decoder_state *channel_state = ((silk_decoder *)decState)->channel _state; | |||
for( n = 0; n < DECODER_NUM_CHANNELS; n++ ) { | for( n = 0; n < DECODER_NUM_CHANNELS; n++ ) { | |||
ret = silk_init_decoder( &channel_state[ n ] ); | ret = silk_init_decoder( &channel_state[ n ] ); | |||
} | } | |||
silk_memset(&((silk_decoder *)decState)->sStereo, 0, sizeof(((silk_deco | ||||
der *)decState)->sStereo)); | ||||
/* Not strictly needed, but it's cleaner that way */ | ||||
((silk_decoder *)decState)->prev_decode_only_middle = 0; | ||||
return ret; | return ret; | |||
} | } | |||
/* Decode a frame */ | /* Decode a frame */ | |||
opus_int silk_Decode( /* O Returns err or code */ | opus_int silk_Decode( /* O Returns err or code */ | |||
void* decState, /* I/O State */ | void* decState, /* I/O State */ | |||
silk_DecControlStruct* decControl, /* I/O Control Str ucture */ | silk_DecControlStruct* decControl, /* I/O Control Str ucture */ | |||
opus_int lostFlag, /* I 0: no loss, 1 loss, 2 decode fec */ | opus_int lostFlag, /* I 0: no loss, 1 loss, 2 decode fec */ | |||
opus_int newPacketFlag, /* I Indicates f irst decoder call for this packet */ | opus_int newPacketFlag, /* I Indicates f irst decoder call for this packet */ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 4 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |