1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

fftools/ffmpeg: Output log message when interactive q command is received

When viewing logs, it's sometimes useful to be able to see whether
execution was ended via q command.

Signed-off-by: softworkz <softworkz@hotmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Soft Works
2021-10-13 08:34:10 +00:00
committed by Marton Balint
parent 99a49f9147
commit ce47ce079a

View File

@@ -3991,8 +3991,10 @@ static int check_keyboard_interaction(int64_t cur_time)
last_time = cur_time; last_time = cur_time;
}else }else
key = -1; key = -1;
if (key == 'q') if (key == 'q') {
av_log(NULL, AV_LOG_INFO, "\n\n[q] command received. Exiting.\n\n");
return AVERROR_EXIT; return AVERROR_EXIT;
}
if (key == '+') av_log_set_level(av_log_get_level()+10); if (key == '+') av_log_set_level(av_log_get_level()+10);
if (key == '-') av_log_set_level(av_log_get_level()-10); if (key == '-') av_log_set_level(av_log_get_level()-10);
if (key == 's') qp_hist ^= 1; if (key == 's') qp_hist ^= 1;