| 2214 | } |
| 2215 | |
| 2216 | static void WriteBackActiveParameters (PWelsDecoderContext pCtx) { |
| 2217 | if (pCtx->sSpsPpsCtx.iOverwriteFlags & OVERWRITE_PPS) { |
| 2218 | memcpy (&pCtx->sSpsPpsCtx.sPpsBuffer[pCtx->sSpsPpsCtx.sPpsBuffer[MAX_PPS_COUNT].iPpsId], |
| 2219 | &pCtx->sSpsPpsCtx.sPpsBuffer[MAX_PPS_COUNT], sizeof (SPps)); |
| 2220 | } |
| 2221 | if (pCtx->sSpsPpsCtx.iOverwriteFlags & OVERWRITE_SPS) { |
| 2222 | memcpy (&pCtx->sSpsPpsCtx.sSpsBuffer[pCtx->sSpsPpsCtx.sSpsBuffer[MAX_SPS_COUNT].iSpsId], |
| 2223 | &pCtx->sSpsPpsCtx.sSpsBuffer[MAX_SPS_COUNT], sizeof (SSps)); |
| 2224 | pCtx->bNewSeqBegin = true; |
| 2225 | } |
| 2226 | if (pCtx->sSpsPpsCtx.iOverwriteFlags & OVERWRITE_SUBSETSPS) { |
| 2227 | memcpy (&pCtx->sSpsPpsCtx.sSubsetSpsBuffer[pCtx->sSpsPpsCtx.sSubsetSpsBuffer[MAX_SPS_COUNT].sSps.iSpsId], |
| 2228 | &pCtx->sSpsPpsCtx.sSubsetSpsBuffer[MAX_SPS_COUNT], sizeof (SSubsetSps)); |
| 2229 | pCtx->bNewSeqBegin = true; |
| 2230 | } |
| 2231 | pCtx->sSpsPpsCtx.iOverwriteFlags = OVERWRITE_NONE; |
| 2232 | } |
| 2233 | |
| 2234 | /* |
| 2235 | * DecodeFinishUpdate |
no outgoing calls
no test coverage detected