Merge to XFA: 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:26:22 +0000 (11:26 -0700)
commit1a316363ee3b17f07ac97f0073dd7480f84b8195
treeb08c5ad6400a4c0bd57c764a582ac7ea7b1605c9
parentc575365cf5396f3fc53511862fabd89bf066beb8
Merge to XFA: 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