Commit 65d963d4 authored by Martin Storsjö's avatar Martin Storsjö Committed by Ronald S. Bultje
Browse files

obu: Initialize off_before_idx[0], fix MSVC warning about uninitialized use

MSVC warns that off_before_idx[0] can be unsed uninitialized
in the line "off_before_idx[1] = off_before_idx[0];" further below.
parent 35b1cde2
......@@ -918,6 +918,7 @@ static int parse_frame_hdr(Dav1dContext *const c, GetBits *const gb) {
unsigned off_before[2] = { 0xFFFFFFFF, 0xFFFFFFFF };
int off_after = -1;
int off_before_idx[2], off_after_idx;
off_before_idx[0] = 0;
for (int i = 0; i < 7; i++) {
if (!c->refs[hdr->refidx[i]][0]) return -EINVAL;
const unsigned refpoc = c->refs[hdr->refidx[i]].p.p.frame_hdr->frame_offset;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment