summaryrefslogtreecommitdiff
path: root/vpx
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2022-08-16 21:59:20 -0700
committerJames Zern <jzern@google.com>2022-08-16 21:59:20 -0700
commit9db0ec67e33fae4cfd066a7cf0fce9f81442c90e (patch)
tree5682f49d1022e95fd50f198e117a3cde296f3ec6 /vpx
parenta76a0228359723fe8b3c522ea0e7c2e2acb26ca8 (diff)
downloadlibvpx-9db0ec67e33fae4cfd066a7cf0fce9f81442c90e.tar
libvpx-9db0ec67e33fae4cfd066a7cf0fce9f81442c90e.tar.gz
libvpx-9db0ec67e33fae4cfd066a7cf0fce9f81442c90e.tar.bz2
libvpx-9db0ec67e33fae4cfd066a7cf0fce9f81442c90e.zip
vpx_encoder.h: make flag constants unsigned
this matches the type for vpx_codec_frame_flags_t and vpx_codec_er_flags_t and quiets int sanitizer warnings of the form: implicit conversion from type 'int' of value -9 (32-bit, signed) to type 'unsigned int' changed the value to 4294967287 (32-bit, unsigned) Bug: b/229626362 Change-Id: Icfc5993250f37cedb300c7032cab28ce4bec1f86
Diffstat (limited to 'vpx')
-rw-r--r--vpx/vpx_encoder.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/vpx/vpx_encoder.h b/vpx/vpx_encoder.h
index 21254bb54..e776ec813 100644
--- a/vpx/vpx_encoder.h
+++ b/vpx/vpx_encoder.h
@@ -115,14 +115,14 @@ typedef int64_t vpx_codec_pts_t;
* support frame types that are codec specific (MPEG-1 D-frames for example)
*/
typedef uint32_t vpx_codec_frame_flags_t;
-#define VPX_FRAME_IS_KEY 0x1 /**< frame is the start of a GOP */
+#define VPX_FRAME_IS_KEY 0x1u /**< frame is the start of a GOP */
/*!\brief frame can be dropped without affecting the stream (no future frame
* depends on this one) */
-#define VPX_FRAME_IS_DROPPABLE 0x2
+#define VPX_FRAME_IS_DROPPABLE 0x2u
/*!\brief frame should be decoded but will not be shown */
-#define VPX_FRAME_IS_INVISIBLE 0x4
+#define VPX_FRAME_IS_INVISIBLE 0x4u
/*!\brief this is a fragment of the encoded frame */
-#define VPX_FRAME_IS_FRAGMENT 0x8
+#define VPX_FRAME_IS_FRAGMENT 0x8u
/*!\brief Error Resilient flags
*
@@ -132,12 +132,12 @@ typedef uint32_t vpx_codec_frame_flags_t;
*/
typedef uint32_t vpx_codec_er_flags_t;
/*!\brief Improve resiliency against losses of whole frames */
-#define VPX_ERROR_RESILIENT_DEFAULT 0x1
+#define VPX_ERROR_RESILIENT_DEFAULT 0x1u
/*!\brief The frame partitions are independently decodable by the bool decoder,
* meaning that partitions can be decoded even though earlier partitions have
* been lost. Note that intra prediction is still done over the partition
* boundary. */
-#define VPX_ERROR_RESILIENT_PARTITIONS 0x2
+#define VPX_ERROR_RESILIENT_PARTITIONS 0x2u
/*!\brief Encoder output packet variants
*