shithub: dav1d

Download patch

ref: 7b101d4fb3d0942d4b180b8e5a7b1e35af06d0bc
parent: 2982ef9279c58c69e19c54b00177cd17a940491b
author: Ronald S. Bultje <[email protected]>
date: Wed Oct 24 06:08:28 EDT 2018

Require refs and curpic to share the same chroma subsampling

Fixes #90.

--- a/src/decode.c
+++ b/src/decode.c
@@ -2862,7 +2862,8 @@
             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]);