Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
ff486c0f
Commit
ff486c0f
authored
Feb 19, 2014
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevc: Do not right shift a negative value in get_pcm
parent
50c988aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
hevc_filter.c
libavcodec/hevc_filter.c
+8
-4
No files found.
libavcodec/hevc_filter.c
View file @
ff486c0f
...
@@ -317,11 +317,15 @@ static void sao_filter_CTB(HEVCContext *s, int x, int y)
...
@@ -317,11 +317,15 @@ static void sao_filter_CTB(HEVCContext *s, int x, int y)
static
int
get_pcm
(
HEVCContext
*
s
,
int
x
,
int
y
)
static
int
get_pcm
(
HEVCContext
*
s
,
int
x
,
int
y
)
{
{
int
log2_min_pu_size
=
s
->
sps
->
log2_min_pu_size
;
int
log2_min_pu_size
=
s
->
sps
->
log2_min_pu_size
;
int
x_pu
=
x
>>
log2_min_pu_size
;
int
x_pu
,
y_pu
;
int
y_pu
=
y
>>
log2_min_pu_size
;
if
(
x
<
0
||
x_pu
>=
s
->
sps
->
min_pu_width
||
if
(
x
<
0
||
y
<
0
)
y
<
0
||
y_pu
>=
s
->
sps
->
min_pu_height
)
return
2
;
x_pu
=
x
>>
log2_min_pu_size
;
y_pu
=
y
>>
log2_min_pu_size
;
if
(
x_pu
>=
s
->
sps
->
min_pu_width
||
y_pu
>=
s
->
sps
->
min_pu_height
)
return
2
;
return
2
;
return
s
->
is_pcm
[
y_pu
*
s
->
sps
->
min_pu_width
+
x_pu
];
return
s
->
is_pcm
[
y_pu
*
s
->
sps
->
min_pu_width
+
x_pu
];
}
}
...
...
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