shithub: libvpx

Download patch

ref: b2c6e1410fce81f9482483db9a10a92ef9ff41fd
parent: ee37046f1b07a4df47a6943b4750b1ad6115db0e
author: Johann <johannkoenig@google.com>
date: Mon Apr 2 11:33:34 EDT 2018

remove support for yuv 411

Previously we attempted to convert 411 input. Remove support
because malformed 411 input can cause the conversion to crash.

BUG=webm:1386

Change-Id: I3d41465a94867ee7f8eaa43fb76beb41f8fa644b

--- a/y4minput.c
+++ b/y4minput.c
@@ -975,6 +975,8 @@
     _y4m->aux_buf_sz =
         _y4m->aux_buf_read_sz + ((_y4m->pic_w + 1) / 2) * _y4m->pic_h;
     _y4m->convert = y4m_convert_411_420jpeg;
+    fprintf(stderr, "Unsupported conversion from yuv 411\n");
+    return -1;
   } else if (strcmp(_y4m->chroma_type, "444") == 0) {
     _y4m->src_c_dec_h = 1;
     _y4m->src_c_dec_v = 1;