Commit ba789ebf authored by Ronald S. Bultje's avatar Ronald S. Bultje

Require bits/component to match between picture and references

Fixes #116.
parent acde4240
......@@ -2867,7 +2867,8 @@ int dav1d_submit_frame(Dav1dContext *const c) {
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]);
......
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