Commit 707acf87 authored by Ronald S. Bultje's avatar Ronald S. Bultje

Prevent bw/bh from being an odd number.

Related to issue #17 and #20.
parent d83e084c
......@@ -2786,8 +2786,8 @@ int submit_frame(Dav1dContext *const c) {
dav1d_thread_picture_ref(out_delayed, &f->cur);
}
f->bw = (f->frame_hdr.width + 3) >> 2;
f->bh = (f->frame_hdr.height + 3) >> 2;
f->bw = ((f->frame_hdr.width + 7) >> 3) << 1;
f->bh = ((f->frame_hdr.height + 7) >> 3) << 1;
f->sb128w = (f->bw + 31) >> 5;
f->sb128h = (f->bh + 31) >> 5;
f->sb_shift = 4 + f->seq_hdr.sb128;
......
Markdown is supported
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