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
167ea1fb
Commit
167ea1fb
authored
Aug 23, 2015
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xavs: Do not try to set the bitrate tolerance without a bitrate
Avoid a division by zero. Bug-Id: CID 1257655
parent
61d8fa2a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
libxavs.c
libavcodec/libxavs.c
+3
-2
No files found.
libavcodec/libxavs.c
View file @
167ea1fb
...
@@ -356,8 +356,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
...
@@ -356,8 +356,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
if
(
avctx
->
level
>
0
)
if
(
avctx
->
level
>
0
)
x4
->
params
.
i_level_idc
=
avctx
->
level
;
x4
->
params
.
i_level_idc
=
avctx
->
level
;
if
(
avctx
->
bit_rate
>
0
)
x4
->
params
.
rc
.
f_rate_tolerance
=
x4
->
params
.
rc
.
f_rate_tolerance
=
(
float
)
avctx
->
bit_rate_tolerance
/
avctx
->
bit_rate
;
(
float
)
avctx
->
bit_rate_tolerance
/
avctx
->
bit_rate
;
if
((
avctx
->
rc_buffer_size
)
&&
if
((
avctx
->
rc_buffer_size
)
&&
(
avctx
->
rc_initial_buffer_occupancy
<=
avctx
->
rc_buffer_size
))
{
(
avctx
->
rc_initial_buffer_occupancy
<=
avctx
->
rc_buffer_size
))
{
...
...
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