ref: 18d2d7507e00b79e6093961a3ce82b9f82ac50c7
parent: e19c769943b7d9b072bc47f545818befa87f4bd3
author: James Almer <jamrial@gmail.com>
date: Sat Jan 12 16:08:59 EST 2019
obu: fix separate_uv_delta_q for RGB
--- a/src/obu.c
+++ b/src/obu.c
@@ -258,8 +258,8 @@
}
hdr->chr = hdr->ss_hor == 1 && hdr->ss_ver == 1 ?
dav1d_get_bits(gb, 2) : DAV1D_CHR_UNKNOWN;
- hdr->separate_uv_delta_q = dav1d_get_bits(gb, 1);
}
+ hdr->separate_uv_delta_q = !hdr->monochrome && dav1d_get_bits(gb, 1);
#if DEBUG_SEQ_HDR
printf("SEQHDR: post-colorinfo: off=%ld\n",
dav1d_get_bits_pos(gb) - init_bit_pos);