fix pipe support on windows
authorJohn Koleszar <jkoleszar@google.com>
Tue, 2 Nov 2010 13:11:57 +0000 (09:11 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Tue, 2 Nov 2010 13:14:24 +0000 (09:14 -0400)
commitc377bf0eec4ab3862e41f7db534e9d3070b0bed7
tree7b1e98481b34f00668b25d05ad5284b57ea28f56
parent90c505f2183be98d19fa106fb7164cd1708b45e1
fix pipe support on windows

STDIO streams are opened in text mode by default on Windows. This patch
changes the stdin/stdout streams to be in binary mode if they are being
used for I/O from the vpxenc or vpxdec tools.

Fixes issue #216. Thanks to mw AT hesotech.de for the fix.

Change-Id: I34525b3ce2a4a031d5a48d36df4667589372225b
examples.mk
tools_common.c [new file with mode: 0644]
tools_common.h [new file with mode: 0644]
vpxdec.c
vpxenc.c