shithub: dav1d

Download patch

ref: 19d8fac33ede74d31aa02c9b0b987aadeba53cf6
parent: 0e55d462957323119b9e90b203f534b9fe6f169a
author: James Almer <jamrial@gmail.com>
date: Fri Mar 1 10:10:22 EST 2019

picture: make mastering display and content light metadata accessible when allocating pictures

--- a/src/picture.c
+++ b/src/picture.c
@@ -123,6 +123,8 @@
     p->p.h = h;
     p->seq_hdr = seq_hdr;
     p->frame_hdr = frame_hdr;
+    p->content_light = content_light;
+    p->mastering_display = mastering_display;
     p->p.layout = seq_hdr->layout;
     p->p.bpc = bpc;
     dav1d_data_props_set_defaults(&p->m);
@@ -153,11 +155,9 @@
     if (extra && extra_ptr)
         *extra_ptr = &pic_ctx->extra_ptr;
 
-    p->content_light = content_light;
     p->content_light_ref = content_light_ref;
     if (content_light_ref) dav1d_ref_inc(content_light_ref);
 
-    p->mastering_display = mastering_display;
     p->mastering_display_ref = mastering_display_ref;
     if (mastering_display_ref) dav1d_ref_inc(mastering_display_ref);