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
25abaf35
Commit
25abaf35
authored
Mar 29, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/libaomenc: minor cosmetics
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
a8a751ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
libaomenc.c
libavcodec/libaomenc.c
+2
-4
No files found.
libavcodec/libaomenc.c
View file @
25abaf35
...
...
@@ -344,8 +344,7 @@ static av_cold int aom_init(AVCodecContext *avctx,
if
(
avctx
->
bit_rate
)
{
enccfg
.
rc_target_bitrate
=
av_rescale_rnd
(
avctx
->
bit_rate
,
1
,
1000
,
AV_ROUND_NEAR_INF
);
}
else
if
(
enccfg
.
rc_end_usage
==
AOM_Q
)
{
}
else
{
}
else
if
(
enccfg
.
rc_end_usage
!=
AOM_Q
)
{
if
(
enccfg
.
rc_end_usage
==
AOM_CQ
)
{
enccfg
.
rc_target_bitrate
=
1000000
;
}
else
{
...
...
@@ -361,8 +360,7 @@ static av_cold int aom_init(AVCodecContext *avctx,
if
(
avctx
->
qmax
>=
0
)
enccfg
.
rc_max_quantizer
=
avctx
->
qmax
;
if
(
enccfg
.
rc_end_usage
==
AOM_CQ
||
enccfg
.
rc_end_usage
==
AOM_Q
)
{
if
(
enccfg
.
rc_end_usage
==
AOM_CQ
||
enccfg
.
rc_end_usage
==
AOM_Q
)
{
if
(
ctx
->
crf
<
enccfg
.
rc_min_quantizer
||
ctx
->
crf
>
enccfg
.
rc_max_quantizer
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"CQ level %d must be between minimum and maximum quantizer value (%d-%d)
\n
"
,
...
...
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