adding jp2_encode_v2 from v2 branches; using the right return value for opj_stream_flush

This commit is contained in:
Mickael Savinaud
2012-05-14 11:04:59 +00:00
parent 202d5ab754
commit 6965e3e03c
3 changed files with 20 additions and 1 deletions

View File

@@ -6040,7 +6040,7 @@ opj_bool j2k_write_eoc_v2( opj_j2k_v2_t *p_j2k,
return OPJ_FALSE;
}
if ( opj_stream_flush(p_stream,p_manager) == EXIT_FAILURE) {
if ( ! opj_stream_flush(p_stream,p_manager) ) {
return OPJ_FALSE;
}