Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1520,7 +1520,7 @@ static bool CheckNewSeqBeginAndUpdateActiveLayerSps(PWelsDecoderContext pCtx) { · 1519 unmodified lines | ||
| 1520 | 1520 | break; |
| 1521 | 1521 | } |
| 1522 | 1522 | } |
| 1523 | − if (iMaxCurrentLayer != iMaxActiveLayer) { | |
| 1523 | + if ((iMaxCurrentLayer != iMaxActiveLayer) || (pTmpLayerSps[iMaxCurrentLayer] != pCtx->pActiveLayerSps[iMaxActiveLayer])) { | |
| 1524 | 1524 | bNewSeq = true; |
| 1525 | 1525 | } |
| 1526 | 1526 | // fill active sps if the current sps is not null while active layer is null |