Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e312543c
Commit
e312543c
authored
Aug 30, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: fix reading commands from stdin
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3016c7f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ffmpeg.c
ffmpeg.c
+6
-1
No files found.
ffmpeg.c
View file @
e312543c
...
...
@@ -2325,8 +2325,13 @@ static int transcode(OutputFile *output_files,
if
(
key
==
'c'
||
key
==
'C'
){
char
ret
[
4096
],
target
[
64
],
cmd
[
256
],
arg
[
256
]
=
{
0
};
double
ts
;
int
k
;
fprintf
(
stderr
,
"
\n
Enter command: <target> <time> <command>[ <argument>]
\n
"
);
if
(
scanf
(
"%4095[^
\n\r
]%*c"
,
ret
)
==
1
&&
sscanf
(
ret
,
"%63[^ ] %lf %255[^ ] %255[^
\n
]"
,
target
,
&
ts
,
cmd
,
arg
)
>=
3
){
i
=
0
;
while
((
k
=
read_key
())
>
0
&&
k
!=
'\n'
&&
k
!=
'\r'
&&
i
<
sizeof
(
ret
)
-
1
)
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
++
)
{
int
r
;
ost
=
&
output_streams
[
i
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment