[FFmpeg-cvslog] avcodec/dovi_rpu: use OR instead of addition
Niklas Haas
git at videolan.org
Fri Mar 22 15:12:11 EET 2024
ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Thu Mar 21 13:50:45 2024 +0100| [d5648a806fda04eeb76e4c8ec9685e8ce19ecc44] | committer: Niklas Haas
avcodec/dovi_rpu: use OR instead of addition
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5648a806fda04eeb76e4c8ec9685e8ce19ecc44
---
libavcodec/dovi_rpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c
index 529062be30..6185fac230 100644
--- a/libavcodec/dovi_rpu.c
+++ b/libavcodec/dovi_rpu.c
@@ -145,7 +145,7 @@ static inline uint64_t get_ue_coef(GetBitContext *gb, const AVDOVIRpuDataHeader
case RPU_COEFF_FIXED:
ipart = get_ue_golomb_long(gb);
fpart.u32 = get_bits_long(gb, hdr->coef_log2_denom);
- return (ipart << hdr->coef_log2_denom) + fpart.u32;
+ return (ipart << hdr->coef_log2_denom) | fpart.u32;
case RPU_COEFF_FLOAT:
fpart.u32 = get_bits_long(gb, 32);
@@ -164,7 +164,7 @@ static inline int64_t get_se_coef(GetBitContext *gb, const AVDOVIRpuDataHeader *
case RPU_COEFF_FIXED:
ipart = get_se_golomb_long(gb);
fpart.u32 = get_bits_long(gb, hdr->coef_log2_denom);
- return ipart * (1LL << hdr->coef_log2_denom) + fpart.u32;
+ return ipart * (1LL << hdr->coef_log2_denom) | fpart.u32;
case RPU_COEFF_FLOAT:
fpart.u32 = get_bits_long(gb, 32);
More information about the ffmpeg-cvslog
mailing list