ref: 707acf8754dc354a37afe025718b6db64270dd0b
parent: d83e084c259d8b6c47062fafebf97a4c1bfb7ef2
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Mon Sep 24 01:07:37 EDT 2018
Prevent bw/bh from being an odd number. Related to issue #17 and #20.
--- a/src/decode.c
+++ b/src/decode.c
@@ -2786,8 +2786,8 @@
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;