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
Implement read_yesno().
Originally committed as revision 18037 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Stefano Sabatini
16 years ago
parent
eab5168cd3
commit
090b61b2d1
2 changed files
with
17 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
cmdutils.c
+6
-0
cmdutils.h
+ 11
- 0
cmdutils.c
View File
@@ -472,3 +472,14 @@ void show_formats(void)
"decoder corresponds to the h263 and h263p encoders, for file formats it is even\n"
"worse.\n");
}
int read_yesno(void)
{
int c = getchar();
int yesno = (toupper(c) == 'Y');
while (c != '\n' && c != EOF)
c = getchar();
return yesno;
}
+ 6
- 0
cmdutils.h
View File
@@ -152,4 +152,10 @@ void show_license(void);
*/
void show_formats(void);
/**
* Returns a positive value if reads from standard input a line
* starting with [yY], otherwise returns 0.
*/
int read_yesno(void);
#endif /* FFMPEG_CMDUTILS_H */
Write
Preview
Loading…
Cancel
Save