mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibVideo: Initialize VP9 BitStream's reservoir field
Leaving it uninitialized could lead to undefined behavior.
This commit is contained in:
parent
fef19aa589
commit
0c07bed89c
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/Zaggy1024
Commit: 0c07bed89c
Pull-request: https://github.com/SerenityOS/serenity/pull/15528
1 changed files with 1 additions and 1 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue