Commit 3fe410b0 authored by Raphaël Zumer's avatar Raphaël Zumer

Clip chroma siting in Y4M output

parent 6e5349fa
......@@ -63,7 +63,8 @@ static int y4m2_open(Y4m2OutputContext *const c, const char *const file,
};
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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment