mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 12:40:01 +00:00
ffmpeg: ffmpeg: fix reading commands from the keyboard
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e312543c82
commit
7c3f4fb42d
4
ffmpeg.c
4
ffmpeg.c
@ -2328,8 +2328,8 @@ static int transcode(OutputFile *output_files,
|
||||
int k;
|
||||
fprintf(stderr, "\nEnter command: <target> <time> <command>[ <argument>]\n");
|
||||
i=0;
|
||||
while((k=read_key()) > 0 && k!='\n' && k!='\r' && i<sizeof(ret)-1)
|
||||
ret[i++]= k;
|
||||
while((k=read_key()) !='\n' && k!='\r' && i<sizeof(ret)-1)
|
||||
if(k>0) ret[i++]= k;
|
||||
ret[i]= 0;
|
||||
if(k>0 && sscanf(ret, "%63[^ ] %lf %255[^ ] %255[^\n]", target, &ts, cmd, arg) >= 3){
|
||||
for(i=0;i<nb_output_streams;i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user