aboutsummaryrefslogtreecommitdiffstats
path: root/libSACdec/src/sac_bitdec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libSACdec/src/sac_bitdec.cpp')
-rw-r--r--libSACdec/src/sac_bitdec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libSACdec/src/sac_bitdec.cpp b/libSACdec/src/sac_bitdec.cpp
index b2f3b7c..37e0cf2 100644
--- a/libSACdec/src/sac_bitdec.cpp
+++ b/libSACdec/src/sac_bitdec.cpp
@@ -566,7 +566,7 @@ SACDEC_ERROR SpatialDecParseSpecificConfig(
with respect to the beginning of the syntactic
element in which ByteAlign() occurs. */
- numHeaderBits = cfgStartPos - FDKgetValidBits(bitstream);
+ numHeaderBits = cfgStartPos - (INT)FDKgetValidBits(bitstream);
bitsAvailable -= numHeaderBits;
pSpatialSpecificConfig->sacExtCnt = 0;
@@ -594,7 +594,7 @@ bail:
bitbuffer is exactly at its end when leaving the function. */
FDKpushBiDirectional(
bitstream,
- (sacHeaderLen * 8) - (cfgStartPos - FDKgetValidBits(bitstream)));
+ (sacHeaderLen * 8) - (cfgStartPos - (INT)FDKgetValidBits(bitstream)));
}
return err;