diff options
-rw-r--r-- | core/fxcodec/codec/fx_codec_progress.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/fxcodec/codec/fx_codec_progress.cpp b/core/fxcodec/codec/fx_codec_progress.cpp index eb0ecc9d87..82b0168f6e 100644 --- a/core/fxcodec/codec/fx_codec_progress.cpp +++ b/core/fxcodec/codec/fx_codec_progress.cpp @@ -1112,13 +1112,6 @@ bool CCodec_ProgressiveDecoder::JpegDetectImageType( CFX_DIBAttribute* pAttribute, uint32_t size) { CCodec_JpegModule* pJpegModule = m_pCodecMgr->GetJpegModule(); - // Setting jump marker before calling Start or ReadHeader, since a longjmp - // to the marker indicates a fatal error in these functions. - if (setjmp(*m_pJpegContext->GetJumpMark()) == -1) { - m_status = FXCODEC_STATUS_ERROR; - return false; - } - m_pJpegContext = pJpegModule->Start(); if (!m_pJpegContext) { m_status = FXCODEC_STATUS_ERR_MEMORY; |