Commit 7b101d4f authored by Ronald S. Bultje's avatar Ronald S. Bultje

Require refs and curpic to share the same chroma subsampling

Fixes #90.
parent 2982ef92
......@@ -2862,7 +2862,8 @@ int dav1d_submit_frame(Dav1dContext *const c) {
const int refidx = f->frame_hdr.refidx[i];
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->frame_hdr.height != c->refs[refidx].p.p.p.h ||
f->seq_hdr.layout != c->refs[refidx].p.p.p.layout)
{
for (int j = 0; j < i; j++)
dav1d_thread_picture_unref(&f->refp[j]);
......
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