aboutsummaryrefslogtreecommitdiff
path: root/libvpx/vpx_dsp/bitwriter.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-04-04 22:17:52 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-04-04 22:17:52 +0000
commitad0eb6a76e32cae294819880ee07105c158982a1 (patch)
tree1dd29cedbba6b704f1dc6447d964096541a500f7 /libvpx/vpx_dsp/bitwriter.h
parent79e287e28ce7149c4d059225c8f3ba9b3304c972 (diff)
parentc1d09c0300c54c9f0c78efb6d82a83f1fcd8af56 (diff)
downloadlibvpx-aml_sdk_331812000.tar.gz
Snap for 9883729 from c1d09c0300c54c9f0c78efb6d82a83f1fcd8af56 to mainline-sdkext-releaseaml_sdk_331812000aml_sdk_331811000android13-mainline-sdkext-release
Change-Id: Ifb36af904bfbcd93f375eee1b6c54a2d25579953
Diffstat (limited to 'libvpx/vpx_dsp/bitwriter.h')
-rw-r--r--libvpx/vpx_dsp/bitwriter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvpx/vpx_dsp/bitwriter.h b/libvpx/vpx_dsp/bitwriter.h
index 04084af8f..5f1ee69ec 100644
--- a/libvpx/vpx_dsp/bitwriter.h
+++ b/libvpx/vpx_dsp/bitwriter.h
@@ -13,6 +13,7 @@
#include <stdio.h>
+#include "vpx_ports/compiler_attributes.h"
#include "vpx_ports/mem.h"
#include "vpx_dsp/prob.h"
@@ -35,7 +36,9 @@ typedef struct vpx_writer {
void vpx_start_encode(vpx_writer *br, uint8_t *source);
void vpx_stop_encode(vpx_writer *br);
-static INLINE void vpx_write(vpx_writer *br, int bit, int probability) {
+static INLINE VPX_NO_UNSIGNED_SHIFT_CHECK void vpx_write(vpx_writer *br,
+ int bit,
+ int probability) {
unsigned int split;
int count = br->count;
unsigned int range = br->range;