This isn't necessary any longer, when all the assembly routines take care of restoring registers as necessary.
Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 9 files). Show all
Unified · Split
| @@ -101,7 +101,6 @@ CWelsDecoder::CWelsDecoder (void) · 100 unmodified lines | |||
| 101 | m_pTrace = CreateWelsTrace (Wels_Trace_Type); | 101 | m_pTrace = CreateWelsTrace (Wels_Trace_Type); |
| 102 | 102 | ||
| 103 | IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry"); | 103 | IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry"); |
| 104 | XMMREG_PROTECT_INIT(CWelsH264Decoder); | ||
| 105 | 104 | ||
| 106 | #ifdef OUTPUT_BIT_STREAM | 105 | #ifdef OUTPUT_BIT_STREAM |
| 107 | SWelsTime sCurTime; | 106 | SWelsTime sCurTime; |
| @@ -167,7 +166,6 @@ CWelsDecoder::~CWelsDecoder() { · 59 unmodified lines | |||
| 167 | IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::~CWelsDecoder()"); | 166 | IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::~CWelsDecoder()"); |
| 168 | 167 | ||
| 169 | UninitDecoder(); | 168 | UninitDecoder(); |
| 170 | XMMREG_PROTECT_UNINIT(CWelsH264Decoder); | ||
| 171 | 169 | ||
| 172 | #ifdef OUTPUT_BIT_STREAM | 170 | #ifdef OUTPUT_BIT_STREAM |
| 173 | if (m_pFBS) { | 171 | if (m_pFBS) { |
| @@ -361,10 +359,8 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 187 unmodified lines | |||
| 361 | 359 | ||
| 362 | m_pDecContext->iFeedbackTidInAu = -1; //initialize | 360 | m_pDecContext->iFeedbackTidInAu = -1; //initialize |
| 363 | 361 | ||
| 364 | XMMREG_PROTECT_STORE(CWelsH264Decoder); | ||
| 365 | WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, (unsigned char**)ppDst, | 362 | WelsDecodeBs (m_pDecContext, kpSrc, kiSrcLen, (unsigned char**)ppDst, |
| 366 | pDstInfo); //iErrorCode has been modified in this function | 363 | pDstInfo); //iErrorCode has been modified in this function |
| 367 | XMMREG_PROTECT_LOAD(CWelsH264Decoder); | ||
| 368 | 364 | ||
| 369 | if (m_pDecContext->iErrorCode) { | 365 | if (m_pDecContext->iErrorCode) { |
| 370 | ENalUnitType eNalType = | 366 | ENalUnitType eNalType = |