diff options
-rw-r--r-- | src/decode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c index 3a8b7fe..66be682 100644 --- a/src/decode.c +++ b/src/decode.c @@ -804,6 +804,9 @@ int aec_decode(struct aec_stream *strm, int flush) struct internal_state *state = strm->state; int status; + if (strm->avail_out % strm->state->bytes_per_sample) + return AEC_MEM_ERROR; + strm->total_in += strm->avail_in; strm->total_out += strm->avail_out; |