summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-08-03 17:08:49 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-08-04 20:05:18 +0200
commit99f8fc725de4de7dcb8f125220e17082ea4b81cc (patch)
treecc3b27d2bb25840e16009ce98dc27b48eddae4cc /ffmpeg.c
parent2ab5002e3cd27cfa8f70035369d554c97739c4d0 (diff)
downloadffmpeg-streaming-99f8fc725de4de7dcb8f125220e17082ea4b81cc.zip
ffmpeg-streaming-99f8fc725de4de7dcb8f125220e17082ea4b81cc.tar.gz
ffmpeg: remove access to private FILE struct members on Windows
The FILE struct is opaque in MSVC 2015, and the members of this struct were never meant to be accessed in any case. No conditions are known where this check was needed to get characters from stdin.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 206b3dc..434abd4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -434,10 +434,6 @@ static int read_key(void)
is_pipe = !GetConsoleMode(input_handle, &dw);
}
- if (stdin->_cnt > 0) {
- read(0, &ch, 1);
- return ch;
- }
if (is_pipe) {
/* When running under a GUI, you will end here. */
if (!PeekNamedPipe(input_handle, NULL, 0, NULL, &nchars, NULL)) {
OpenPOWER on IntegriCloud