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
d472453e
Commit
d472453e
authored
Aug 16, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvpxenc: fix division by zero
Reported-by: thresh Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c581cb4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
libvpxenc.c
libavcodec/libvpxenc.c
+3
-2
No files found.
libavcodec/libvpxenc.c
View file @
d472453e
...
@@ -273,8 +273,9 @@ static av_cold int vp8_init(AVCodecContext *avctx)
...
@@ -273,8 +273,9 @@ static av_cold int vp8_init(AVCodecContext *avctx)
//0-100 (0 => CBR, 100 => VBR)
//0-100 (0 => CBR, 100 => VBR)
enccfg
.
rc_2pass_vbr_bias_pct
=
round
(
avctx
->
qcompress
*
100
);
enccfg
.
rc_2pass_vbr_bias_pct
=
round
(
avctx
->
qcompress
*
100
);
enccfg
.
rc_2pass_vbr_minsection_pct
=
if
(
avctx
->
bit_rate
)
avctx
->
rc_min_rate
*
100LL
/
avctx
->
bit_rate
;
enccfg
.
rc_2pass_vbr_minsection_pct
=
avctx
->
rc_min_rate
*
100LL
/
avctx
->
bit_rate
;
if
(
avctx
->
rc_max_rate
)
if
(
avctx
->
rc_max_rate
)
enccfg
.
rc_2pass_vbr_maxsection_pct
=
enccfg
.
rc_2pass_vbr_maxsection_pct
=
avctx
->
rc_max_rate
*
100LL
/
avctx
->
bit_rate
;
avctx
->
rc_max_rate
*
100LL
/
avctx
->
bit_rate
;
...
...
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