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
feb1cf08
Commit
feb1cf08
authored
Sep 24, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/h265_profile_level: Avoid integer overflow in bitrate
Fixes CIDs #1439659 and #1439660.
parent
321294ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
h265_profile_level.c
libavcodec/h265_profile_level.c
+1
-1
No files found.
libavcodec/h265_profile_level.c
View file @
feb1cf08
...
...
@@ -224,7 +224,7 @@ const H265LevelDescriptor *ff_h265_guess_level(const H265RawProfileTierLevel *pt
max_br
=
level
->
max_br_main
;
if
(
!
max_br
)
continue
;
if
(
bitrate
>
profile
->
cpb_nal_factor
*
hbr_factor
*
max_br
)
if
(
bitrate
>
(
int64_t
)
profile
->
cpb_nal_factor
*
hbr_factor
*
max_br
)
continue
;
if
(
pic_size
<
(
level
->
max_luma_ps
>>
2
))
...
...
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