Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -99,7 +99,7 @@ CWelsDecoder::CWelsDecoder (void_t) · 98 unmodified lines | ||
| 99 | 99 | m_pTrace = CreateWelsTrace (Wels_Trace_Type); |
| 100 | 100 | |
| 101 | 101 | IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry"); |
| 102 | − | |
| 102 | + XMMREG_PROTECT_INIT(CWelsH264Decoder); | |
| 103 | 103 | |
| 104 | 104 | #ifdef OUTPUT_BIT_STREAM |
| 105 | 105 | SWelsTime sCurTime; |
| @@ -151,6 +151,7 @@ CWelsDecoder::~CWelsDecoder() { · 45 unmodified lines | ||
| 151 | 151 | IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::~CWelsDecoder()"); |
| 152 | 152 | |
| 153 | 153 | UninitDecoder(); |
| 154 | + XMMREG_PROTECT_UNINIT(CWelsH264Decoder); | |
| 154 | 155 | |
| 155 | 156 | #ifdef OUTPUT_BIT_STREAM |
| 156 | 157 | if (m_pFBS) { |
| @@ -384,8 +385,10 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 227 unmodified lines | ||
| 384 | 385 | |
| 385 | 386 | m_pDecContext->iFeedbackTidInAu = -1; //initialize |
| 386 | 387 | |
| 388 | + XMMREG_PROTECT_STORE(CWelsH264Decoder); | |
| 387 | 389 | WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, (unsigned char**)ppDst, |
| 388 | 390 | pDstInfo); //iErrorCode has been modified in this function |
| 391 | + XMMREG_PROTECT_LOAD(CWelsH264Decoder); | |
| 389 | 392 | |
| 390 | 393 | pDstInfo->eWorkMode = (EDecodeMode)m_pDecContext->iDecoderMode; |
| 391 | 394 | |