mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 18:40:03 +01:00
fftools/ffmpeg: suppress unused variable warning, but using it
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
@@ -250,7 +250,7 @@ void term_init(void)
|
|||||||
/* read a key without blocking */
|
/* read a key without blocking */
|
||||||
static int read_key(void)
|
static int read_key(void)
|
||||||
{
|
{
|
||||||
unsigned char ch;
|
unsigned char ch = -1;
|
||||||
#if HAVE_TERMIOS_H
|
#if HAVE_TERMIOS_H
|
||||||
int n = 1;
|
int n = 1;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
@@ -297,7 +297,7 @@ static int read_key(void)
|
|||||||
if(kbhit())
|
if(kbhit())
|
||||||
return(getch());
|
return(getch());
|
||||||
#endif
|
#endif
|
||||||
return -1;
|
return ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int decode_interrupt_cb(void *ctx)
|
static int decode_interrupt_cb(void *ctx)
|
||||||
|
|||||||
Reference in New Issue
Block a user