negative data with left shift, use cast or multiplication instead
Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 3 files). Show all
Unified · Split
| @@ -694,8 +694,8 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 693 unmodified lines | ||
| 694 | 694 | return ERR_INFO_INVALID_DBLOCKING_IDC; |
| 695 | 695 | } |
| 696 | 696 | if (pSliceHead->uiDisableDeblockingFilterIdc != 1) { |
| 697 | − pSliceHead->iSliceAlphaC0Offset = BsGetSe (pBs) << 1; // slice_alpha_c0_offset_div2 | |
| 698 | − pSliceHead->iSliceBetaOffset = BsGetSe (pBs) << 1; // iSliceBetaOffset | |
| 697 | + pSliceHead->iSliceAlphaC0Offset = BsGetSe (pBs) * 2; // slice_alpha_c0_offset_div2 | |
| 698 | + pSliceHead->iSliceBetaOffset = BsGetSe (pBs) * 2; // iSliceBetaOffset | |
| 699 | 699 | } |
| 700 | 700 | } |
| 701 | 701 | |