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
ec3c9a30
Commit
ec3c9a30
authored
Nov 11, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: check debug scanf() return value.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7d3982bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffmpeg.c
ffmpeg.c
+2
-1
No files found.
ffmpeg.c
View file @
ec3c9a30
...
...
@@ -2575,7 +2575,8 @@ static int transcode(OutputFile *output_files, int nb_output_files,
while
(
debug
&
(
FF_DEBUG_DCT_COEFF
|
FF_DEBUG_VIS_QP
|
FF_DEBUG_VIS_MB_TYPE
))
//unsupported, would just crash
debug
+=
debug
;
}
else
scanf
(
"%d"
,
&
debug
);
if
(
scanf
(
"%d"
,
&
debug
)
!=
1
)
fprintf
(
stderr
,
"error parsing debug value
\n
"
);
for
(
i
=
0
;
i
<
nb_input_streams
;
i
++
)
{
input_streams
[
i
].
st
->
codec
->
debug
=
debug
;
}
...
...
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