Commit 3a6b42c1 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer

Fail if output buffer cannot be completely filled with selected type.

parent fb09e8ce
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment