Fix a bug that JPX images can't be shown
authorJUN FANG <jun_fang@foxitsoftware.com>
Mon, 16 Mar 2015 18:22:52 +0000 (11:22 -0700)
committerJUN FANG <jun_fang@foxitsoftware.com>
Mon, 16 Mar 2015 18:22:52 +0000 (11:22 -0700)
commitcd3c4764b87323ec7b712e537d18292d849611b9
tree5cc3f51bfb412ce5e8ec1dfe0f9e2c09c678ffb9
parentae5b85a6d5ca1f3c3abd988f19ddc8bfd904464a
Fix a bug that JPX images can't be shown

In the process of opj_end_decompress, it will return fail when the end of coding stream is reached. However it returns true in the same scenario implemented in openJPEG. So the final solution is from openJPEG. Return true when the end of coding stream is reached.

BUG=452671
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/990683002
core/src/fxcodec/codec/fx_codec_jpx_opj.cpp