mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Make sure the first q press doesnt f*ck up the protocols and thus written files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9055240761
commit
8993b5969a
3
ffmpeg.c
3
ffmpeg.c
@ -509,7 +509,8 @@ static int read_key(void)
|
|||||||
|
|
||||||
static int decode_interrupt_cb(void)
|
static int decode_interrupt_cb(void)
|
||||||
{
|
{
|
||||||
return q_pressed || (q_pressed = read_key() == 'q');
|
q_pressed += read_key() == 'q';
|
||||||
|
return q_pressed > 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ffmpeg_exit(int ret)
|
static int ffmpeg_exit(int ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user