zero avail_out is legal after buffer_encode
authorMathis Rosenhauer <rosenhauer@dkrz.de>
Wed, 5 Dec 2012 14:35:21 +0000 (15:35 +0100)
committerThomas Jahns <jahns@dkrz.de>
Tue, 19 Feb 2013 10:33:02 +0000 (11:33 +0100)
src/encode.c

index 44ffcaf..4b4f237 100644 (file)
@@ -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);