diff options
author | Dave Yeo <dave.r.yeo@gmail.com> | 2011-03-22 03:47:48 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-03-22 11:07:46 +0000 |
commit | b58b9fa3b5243f02e5212db9171b2f02de4524ea (patch) | |
tree | ebdc8cfb44c44998b6b7c503b4353d9d79195453 /ffmpeg.c | |
parent | 2a569799a90986cf137792cc03a56752447652c7 (diff) | |
download | ffmpeg-streaming-b58b9fa3b5243f02e5212db9171b2f02de4524ea.zip ffmpeg-streaming-b58b9fa3b5243f02e5212db9171b2f02de4524ea.tar.gz |
Make sure kbhit() is in conio.h
Conio.h is a non-standard header and may not have kbhit()
prototyped. This fixes compile on OS/2 where the EMX version (we're
using a fork) of conio.h only has getch() and getche().
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -69,7 +69,7 @@ #include <sys/select.h> #endif -#if HAVE_CONIO_H +#if HAVE_KBHIT #include <conio.h> #endif #include <time.h> @@ -435,7 +435,7 @@ static void term_init(void) /* read a key without blocking */ static int read_key(void) { -#if HAVE_CONIO_H +#if HAVE_KBHIT if(kbhit()) return(getch()); #endif @@ -2437,7 +2437,7 @@ static int transcode(AVFormatContext **output_files, } if (!using_stdin && verbose >= 0) { -#if HAVE_CONIO_H +#if HAVE_KBHIT fprintf(stderr, "Press [q] to stop encoding\n"); #else fprintf(stderr, "Press ctrl-c to stop encoding\n"); |