| Index: core/fxcodec/codec/fx_codec_jpeg.cpp
|
| diff --git a/core/fxcodec/codec/fx_codec_jpeg.cpp b/core/fxcodec/codec/fx_codec_jpeg.cpp
|
| index 7670516a250fa4e8905f860767a0078f87efe9c1..49b0aca3b8b949d0a7ecd47d26b5faf33b07b6c9 100644
|
| --- a/core/fxcodec/codec/fx_codec_jpeg.cpp
|
| +++ b/core/fxcodec/codec/fx_codec_jpeg.cpp
|
| @@ -449,12 +449,12 @@ int CCodec_JpegModule::ReadHeader(FXJPEG_Context* ctx,
|
| return 0;
|
| }
|
|
|
| -int CCodec_JpegModule::StartScanline(FXJPEG_Context* ctx, int down_scale) {
|
| +FX_BOOL CCodec_JpegModule::StartScanline(FXJPEG_Context* ctx, int down_scale) {
|
| if (setjmp(ctx->m_JumpMark) == -1)
|
| - return 0;
|
| + return FALSE;
|
|
|
| ctx->m_Info.scale_denom = down_scale;
|
| - return jpeg_start_decompress(&ctx->m_Info);
|
| + return !!jpeg_start_decompress(&ctx->m_Info);
|
| }
|
|
|
| FX_BOOL CCodec_JpegModule::ReadScanline(FXJPEG_Context* ctx,
|
|
|