summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac/entropy.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/demac/libdemac/entropy.c')
-rw-r--r--apps/codecs/demac/libdemac/entropy.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/codecs/demac/libdemac/entropy.c b/apps/codecs/demac/libdemac/entropy.c
index e8561122a7..54b5cc57b6 100644
--- a/apps/codecs/demac/libdemac/entropy.c
+++ b/apps/codecs/demac/libdemac/entropy.c
@@ -419,11 +419,11 @@ void init_entropy_decoder(struct ape_ctx_t* ape_ctx,
419 *firstbyte = bytebufferoffset; 419 *firstbyte = bytebufferoffset;
420} 420}
421 421
422int ICODE_ATTR_DEMAC entropy_decode(struct ape_ctx_t* ape_ctx, 422void ICODE_ATTR_DEMAC entropy_decode(struct ape_ctx_t* ape_ctx,
423 unsigned char* inbuffer, int* firstbyte, 423 unsigned char* inbuffer, int* firstbyte,
424 int* bytesconsumed, 424 int* bytesconsumed,
425 int32_t* decoded0, int32_t* decoded1, 425 int32_t* decoded0, int32_t* decoded1,
426 int blockstodecode) 426 int blockstodecode)
427{ 427{
428 bytebuffer = inbuffer; 428 bytebuffer = inbuffer;
429 bytebufferoffset = *firstbyte; 429 bytebufferoffset = *firstbyte;
@@ -458,6 +458,4 @@ int ICODE_ATTR_DEMAC entropy_decode(struct ape_ctx_t* ape_ctx,
458 /* Return the new state of the buffer */ 458 /* Return the new state of the buffer */
459 *bytesconsumed = bytebuffer - inbuffer; 459 *bytesconsumed = bytebuffer - inbuffer;
460 *firstbyte = bytebufferoffset; 460 *firstbyte = bytebufferoffset;
461
462 return(0);
463} 461}