Commit 2e015ff3 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer Committed by Thomas Jahns

Check output availability

parent 3d5b023d
......@@ -605,11 +605,12 @@ static int m_get_rsi_resumable(struct aec_stream *strm)
}
emit(state, 0, state->bits);
if (state->direct_out == 0)
*strm->next_out++ = *state->cds;
strm->avail_out--;
strm->total_out++;
if (strm->avail_out > 0) {
if (state->direct_out == 0)
*strm->next_out++ = *state->cds;
strm->avail_out--;
strm->total_out++;
}
return M_EXIT;
}
} else {
......
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