Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
bffe61d5
Commit
bffe61d5
authored
Jan 01, 2016
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix overflowing shifts (cid #1346922, cid #1253066)
parent
e7f095c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/vlc_bits.h
include/vlc_bits.h
+1
-1
modules/packetizer/hevc_nal.c
modules/packetizer/hevc_nal.c
+1
-1
No files found.
include/vlc_bits.h
View file @
bffe61d5
...
...
@@ -234,7 +234,7 @@ static inline uint32_t bs_read_ue( bs_t * bs )
{
int32_t
i
=
0
;
while
(
bs_read1
(
bs
)
==
0
&&
bs
->
p
<
bs
->
p_end
&&
i
<
3
2
)
while
(
bs_read1
(
bs
)
==
0
&&
bs
->
p
<
bs
->
p_end
&&
i
<
3
1
)
i
++
;
return
(
1
<<
i
)
-
1
+
bs_read
(
bs
,
i
);
...
...
modules/packetizer/hevc_nal.c
View file @
bffe61d5
...
...
@@ -1003,7 +1003,7 @@ static bool hevc_get_picture_CtbsYsize( const hevc_sequence_parameter_set_t *p_s
{
const
unsigned
int
MinCbLog2SizeY
=
p_sps
->
log2_min_luma_coding_block_size_minus3
+
3
;
const
unsigned
int
CtbLog2SizeY
=
MinCbLog2SizeY
+
p_sps
->
log2_diff_max_min_luma_coding_block_size
;
if
(
CtbLog2SizeY
>
3
2
)
if
(
CtbLog2SizeY
>
3
1
)
return
false
;
const
unsigned
int
CtbSizeY
=
1
<<
CtbLog2SizeY
;
*
p_w
=
(
p_sps
->
pic_width_in_luma_samples
-
1
)
/
CtbSizeY
+
1
;
...
...
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