Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 2 files). Show all
Unified · Split
| @@ -690,7 +690,7 @@ int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWi · 689 unmodified lines | ||
| 690 | 690 | */ |
| 691 | 691 | void_t UpdateMaxPictureResolution (PWelsDecoderContext pCtx, const int32_t kiCurWidth, const int32_t kiCurHeight) { |
| 692 | 692 | //any dimension larger than that of current dimension, should modify the max-dimension |
| 693 | − if (kiCurWidth * kiCurHeight > pCtx->iMaxWidthInSps * pCtx->iMaxHeightInSps) { | |
| 693 | + if ((kiCurWidth * kiCurHeight) > (pCtx->iMaxWidthInSps * pCtx->iMaxHeightInSps)) { | |
| 694 | 694 | pCtx->iMaxWidthInSps = kiCurWidth; |
| 695 | 695 | pCtx->iMaxHeightInSps = kiCurHeight; |
| 696 | 696 | } |