[vlc-commits] packetizer: av1: cast enums
Francois Cartegnie
git at videolan.org
Thu Oct 11 16:57:36 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 11 15:11:34 2018 +0200| [a7bb62cdd6fdd3590a3624153d97bc79b355c5e3] | committer: Francois Cartegnie
packetizer: av1: cast enums
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7bb62cdd6fdd3590a3624153d97bc79b355c5e3
---
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