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
4930cd13
Commit
4930cd13
authored
Jul 02, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: check av_opt_set_dict() return
Fixes CID1224275 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
79d3eeb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ffmpeg.c
ffmpeg.c
+5
-1
No files found.
ffmpeg.c
View file @
4930cd13
...
@@ -2864,7 +2864,11 @@ static int transcode_init(void)
...
@@ -2864,7 +2864,11 @@ static int transcode_init(void)
av_log
(
NULL
,
AV_LOG_WARNING
,
"The bitrate parameter is set too low."
av_log
(
NULL
,
AV_LOG_WARNING
,
"The bitrate parameter is set too low."
" It takes bits/s as argument, not kbits/s
\n
"
);
" It takes bits/s as argument, not kbits/s
\n
"
);
}
else
{
}
else
{
av_opt_set_dict
(
ost
->
enc_ctx
,
&
ost
->
encoder_opts
);
if
(
av_opt_set_dict
(
ost
->
enc_ctx
,
&
ost
->
encoder_opts
)
<
0
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"Error setting up codec context options.
\n
"
);
exit_program
(
1
);
}
}
}
ret
=
avcodec_copy_context
(
ost
->
st
->
codec
,
ost
->
enc_ctx
);
ret
=
avcodec_copy_context
(
ost
->
st
->
codec
,
ost
->
enc_ctx
);
...
...
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