Chromium Code Reviews| 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..3d246566b2ab2171cb2e47b466440341c166ecfe 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; |
|
Lei Zhang
2016/10/28 00:50:20
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, |