[vlc-commits] packetizer: av1: cast enums
Francois Cartegnie
git at videolan.org
Wed Oct 17 15:22:14 CEST 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 11 15:11:34 2018 +0200| [f648cf424bbb4ea5ac23279745138245a78f797b] | committer: Tristan Matthews
packetizer: av1: cast enums
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=f648cf424bbb4ea5ac23279745138245a78f797b
---
modules/packetizer/av1_obu.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/packetizer/av1_obu.h b/modules/packetizer/av1_obu.h
index 7b22338eb8..db71f7c8dc 100644
--- a/modules/packetizer/av1_obu.h
+++ b/modules/packetizer/av1_obu.h
@@ -56,7 +56,7 @@ enum av1_obu_type_e
static inline enum av1_obu_type_e AV1_OBUGetType(const uint8_t *p_buf)
{
- return (p_buf[0] >> 3) & 0x0F;
+ return (enum av1_obu_type_e)((p_buf[0] >> 3) & 0x0F);
}
static inline bool AV1_OBUHasSizeField(const uint8_t *p_buf)
@@ -152,7 +152,7 @@ static inline enum av1_obu_metadata_type_e
uint64_t i_type = leb128(p_buf, i_buf, &i_len);
if(i_len == 0 || i_type > ((INT64_C(1) << 32) - 1))
return AV1_METADATA_TYPE_RESERVED;
- return i_type;
+ return (enum av1_obu_metadata_type_e) i_type;
}
More information about the vlc-commits
mailing list