summaryrefslogtreecommitdiff
path: root/y4menc.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-07-14 13:31:29 -0700
committerDeb Mukherjee <debargha@google.com>2014-07-18 15:35:17 -0700
commit096224ffc2cb67bcaefad6315cee83ac37b7cbbf (patch)
tree9db8fc30c7d254f17e1b63eb87e7f851ed18dbb3 /y4menc.c
parent597ce31ff81e23129f5e76705634c4d5c9c72ef2 (diff)
downloadlibvpx-096224ffc2cb67bcaefad6315cee83ac37b7cbbf.tar.gz
Use custom mkstemp() to fix Win issue in y4m_test
Uses mkstmp() with directory being the same as the test data directory to create temporary output file. For Windows GetTempFileNameA() function is used. Change-Id: Ie4681b2b4f44f8c22d3b3faf134c44087b484f94
Diffstat (limited to 'y4menc.c')
-rw-r--r--y4menc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/y4menc.c b/y4menc.c
index 9211452a4..b647e8dcc 100644
--- a/y4menc.c
+++ b/y4menc.c
@@ -48,6 +48,7 @@ int y4m_write_file_header(char *buf, size_t len, int width, int height,
"C420p16 XYSCSS=420P16\n";
break;
default:
+ color = NULL;
assert(0);
}
return snprintf(buf, len, "YUV4MPEG2 W%u H%u F%u:%u I%c %s", width, height,