From 8c6bc974ce0f424aadfafc328b34624681f14e39 Mon Sep 17 00:00:00 2001 From: Mathis Rosenhauer Date: Wed, 5 Dec 2012 15:35:21 +0100 Subject: [PATCH] zero avail_out is legal after buffer_encode --- src/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encode.c b/src/encode.c index 44ffcaf..4b4f237 100644 --- a/src/encode.c +++ b/src/encode.c @@ -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); -- 2.7.4