shshankjain / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

stdin with vpxenc & vpxdec doesn't work under Windows #216

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The read from stdin in vpxenc and vpxdec doesn't work under
Windows because stdin is default in text mode, but it must be in binary mode.
You can fix this with the following lines:

infile = strcmp(in_fn, "-") ? fopen(in_fn, "rb") : stdin;
#ifdef WIN32
        _setmode( _fileno( stdin ), _O_BINARY );
#endif

Original issue reported on code.google.com by m...@hesotech.de on 2 Nov 2010 at 10:29

GoogleCodeExporter commented 9 years ago
https://review.webmproject.org/1071

Original comment by jkoles...@google.com on 2 Nov 2010 at 1:12

GoogleCodeExporter commented 9 years ago

Original comment by albe...@google.com on 8 Mar 2012 at 12:10