commit | 0da9fef24f52c362be4483293eecbc386f913c59 | [log] [tgz] |
---|---|---|
author | Jonathan Matthews <jonathan.matthews@argondesign.com> | Sat Jul 28 16:53:22 2018 +0100 |
committer | Debargha Mukherjee <debargha@google.com> | Wed Aug 08 19:09:13 2018 +0000 |
tree | 72ef576171806b0e12a7695a5bf26593fb6829a8 | |
parent | d1058546ccf8574a00aef6b5a043cd44f1dd19d1 [diff] |
[normative]Set img's monochrome value correctly BUG=aomedia:2051 Change-Id: I666440d7a273106572ff2afdb895b9255cf363b9
diff --git a/apps/aomdec.c b/apps/aomdec.c index 2d8a962..1e34eaa 100644 --- a/apps/aomdec.c +++ b/apps/aomdec.c
@@ -937,6 +937,9 @@ aom_img_free(img_shifted); img_shifted = NULL; } + if (img_shifted) { + img_shifted->monochrome = img->monochrome; + } if (!img_shifted) { img_shifted = aom_img_alloc(NULL, shifted_fmt, img->d_w, img->d_h, 16);