Make RSI padding for encoding compile time option as it affects performance
[platform/upstream/libaec.git] / src / encode.c
index d53b6db..4554867 100644 (file)
@@ -511,11 +511,13 @@ static int m_flush_block(struct aec_stream *strm)
     int n;
     struct internal_state *state = strm->state;
 
+#ifdef ENABLE_RSI_PADDING
     if (state->blocks_avail == 0
         && strm->flags & AEC_PAD_RSI
         && state->block_nonzero == 0
         )
         emit(state, 0, state->bits % 8);
+#endif
 
     if (state->direct_out) {
         n = state->cds - strm->next_out;