shithub: dav1d

Download patch

ref: 88481ca4be070b990d69207111432c091b3cba21
parent: dab08ce4c55bb29f7d373b75d85d478d0c10aabb
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Sun Nov 11 05:16:21 EST 2018

Use prev_frame seg_map if temporal=0,update=0 also

--- a/src/decode.c
+++ b/src/decode.c
@@ -3045,7 +3045,7 @@
 
     // segmap
     if (f->frame_hdr.segmentation.enabled) {
-        if (f->frame_hdr.segmentation.temporal) {
+        if (f->frame_hdr.segmentation.temporal || !f->frame_hdr.segmentation.update_map) {
             const int pri_ref = f->frame_hdr.primary_ref_frame;
             assert(pri_ref != PRIMARY_REF_NONE);
             const int ref_w = (f->refp[pri_ref].p.p.w + 3) >> 2;