[codec,progressive] fix result cast in progressive_rfx_srl_read

This commit is contained in:
Armin Novak 2024-09-18 11:36:17 +02:00
parent 769b225278
commit fdd8a5cedd
No known key found for this signature in database
GPG Key ID: 2CF4A2D2D3D72105

View File

@ -1143,7 +1143,7 @@ static INLINE INT16 progressive_rfx_srl_read(RFX_PROGRESSIVE_UPGRADE_STATE* WINP
if (mag > INT16_MAX)
mag = INT16_MAX;
return (INT16)(sign ? -1 * mag : mag);
return (INT16)(sign ? -1 * (int)mag : (INT16)mag);
}
static INLINE int