shithub: dav1d

Download patch

ref: 3fe410b0b75df42dc91d5cf92eff02faf8ebe6b8
parent: 6e5349fa78f60dde2c8c61e026645c5c915a96d9
author: Raphaël Zumer <rzumer@tebako.net>
date: Thu Sep 27 17:39:26 EDT 2018

Clip chroma siting in Y4M output

--- a/tools/output/y4m2.c
+++ b/tools/output/y4m2.c
@@ -63,7 +63,8 @@
     };
     
     const char *const ss_name = p->layout == DAV1D_PIXEL_LAYOUT_I420 && p->bpc == 8 ?
-        chr_names_8bpc_i420[p->chr] : ss_names[p->layout][p->bpc > 8];
+        chr_names_8bpc_i420[p->chr > 2 ? DAV1D_CHR_UNKNOWN : p->chr] : 
+        ss_names[p->layout][p->bpc > 8];
     
     fprintf(c->f, "YUV4MPEG2 W%d H%d C%s Ip F%d:%d\n",
             p->w, p->h, ss_name, fps[0], fps[1]);