This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
ffmpeg: fix read_yn() if HAVE_TERMIOS_H || HAVE_KBHIT == 0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer
13 years ago
parent
dc46692ded
commit
f3bacced24
1 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-2
ffmpeg.c
+ 4
- 2
ffmpeg.c
View File
@@ -611,11 +611,13 @@ static int read_key(void)
static int read_yn(void)
{
int c;
int c
, t
;
#if HAVE_TERMIOS_H || HAVE_KBHIT
while((c=read_key()) < 0);
#else
c= getchar();
t=c= getchar();
while (t != '\n' && t != EOF)
t = getchar();
#endif
return (toupper(c) == 'Y');
Write
Preview
Loading…
Cancel
Save