Commit 8c6bc974 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer Committed by Thomas Jahns

zero avail_out is legal after buffer_encode

parent 59791f65
......@@ -906,7 +906,7 @@ int aec_buffer_encode(struct aec_stream *strm)
if (status != AEC_OK)
return status;
status = aec_encode(strm, AEC_FLUSH);
if (strm->avail_in > 0 || strm->avail_out == 0)
if (strm->avail_in > 0)
status = AEC_DATA_ERROR;
aec_encode_end(strm);
......
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