mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 14:09:58 +00:00
vp9: Provide a default initializer for "hidden" member
The API of VP9 exposes a WasFrameHidden() function which accesses this member. Given the constructor previously didn't initialize this member, it's a potential vector for an uninitialized read. Instead, we can initialize this to a deterministic value to prevent that from occurring.
This commit is contained in:
parent
f8543249f0
commit
badea3b301
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ private:
|
||||||
std::array<s8, 4> loop_filter_ref_deltas{};
|
std::array<s8, 4> loop_filter_ref_deltas{};
|
||||||
std::array<s8, 2> loop_filter_mode_deltas{};
|
std::array<s8, 2> loop_filter_mode_deltas{};
|
||||||
|
|
||||||
bool hidden;
|
bool hidden = false;
|
||||||
s64 current_frame_number = -2; // since we buffer 2 frames
|
s64 current_frame_number = -2; // since we buffer 2 frames
|
||||||
s32 grace_period = 6; // frame offsets need to stabilize
|
s32 grace_period = 6; // frame offsets need to stabilize
|
||||||
std::array<FrameContexts, 4> frame_ctxs{};
|
std::array<FrameContexts, 4> frame_ctxs{};
|
||||||
|
|
Loading…
Reference in a new issue