diff options
author | Zaggy1024 <zaggy1024@gmail.com> | 2022-10-10 03:45:11 -0500 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-10-10 11:04:39 +0100 |
commit | 0c07bed89c58d3fca745fbe12753335247406c05 (patch) | |
tree | 2dc197a84487eeea1d8ddc813f593ca30dfa3e74 | |
parent | fef19aa589c844a4da1cee86ab4ef14dec6880d9 (diff) | |
download | serenity-0c07bed89c58d3fca745fbe12753335247406c05.zip |
LibVideo: Initialize VP9 BitStream's reservoir field
Leaving it uninitialized could lead to undefined behavior.
-rw-r--r-- | Userland/Libraries/LibVideo/VP9/BitStream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibVideo/VP9/BitStream.h b/Userland/Libraries/LibVideo/VP9/BitStream.h index 7c51c315e1..4ea7afee9e 100644 --- a/Userland/Libraries/LibVideo/VP9/BitStream.h +++ b/Userland/Libraries/LibVideo/VP9/BitStream.h @@ -47,7 +47,7 @@ private: u8 const* m_data_ptr { nullptr }; u8 const* m_end_ptr { nullptr }; - u64 m_reservoir; + u64 m_reservoir { 0 }; u8 m_reservoir_bits_remaining { 0 }; size_t m_bits_read { 0 }; |