ref: ba789ebfb4f6de6f478722d34114a18c8c9bb5c7
parent: acde4240fe0fd55077cfefabba1348b632f33fbd
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Sat Oct 27 17:28:14 EDT 2018
Require bits/component to match between picture and references Fixes #116.
--- a/src/decode.c
+++ b/src/decode.c
@@ -2867,7 +2867,8 @@
if (!c->refs[refidx].p.p.data[0] ||
f->frame_hdr.width != c->refs[refidx].p.p.p.w ||
f->frame_hdr.height != c->refs[refidx].p.p.p.h ||
- f->seq_hdr.layout != c->refs[refidx].p.p.p.layout)
+ f->seq_hdr.layout != c->refs[refidx].p.p.p.layout ||
+ f->seq_hdr.bpc != c->refs[refidx].p.p.p.bpc)
{
for (int j = 0; j < i; j++)
dav1d_thread_picture_unref(&f->refp[j]);