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
a1926a29
Commit
a1926a29
authored
Jul 11, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevc: avoid invalid shifts of negative values
parent
515b69f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hevc.c
libavcodec/hevc.c
+3
-3
No files found.
libavcodec/hevc.c
View file @
a1926a29
...
...
@@ -1494,7 +1494,7 @@ static void luma_mc(HEVCContext *s, int16_t *dst, ptrdiff_t dststride,
x_off
+=
mv
->
x
>>
2
;
y_off
+=
mv
->
y
>>
2
;
src
+=
y_off
*
srcstride
+
(
x_off
<<
s
->
ps
.
sps
->
pixel_shift
);
src
+=
y_off
*
srcstride
+
(
x_off
*
(
1
<<
s
->
ps
.
sps
->
pixel_shift
)
);
if
(
x_off
<
extra_left
||
y_off
<
extra_top
||
x_off
>=
pic_width
-
block_w
-
ff_hevc_qpel_extra_after
[
mx
]
||
...
...
@@ -1548,8 +1548,8 @@ static void chroma_mc(HEVCContext *s, int16_t *dst1, int16_t *dst2,
x_off
+=
mv
->
x
>>
3
;
y_off
+=
mv
->
y
>>
3
;
src1
+=
y_off
*
src1stride
+
(
x_off
<<
s
->
ps
.
sps
->
pixel_shift
);
src2
+=
y_off
*
src2stride
+
(
x_off
<<
s
->
ps
.
sps
->
pixel_shift
);
src1
+=
y_off
*
src1stride
+
(
x_off
*
(
1
<<
s
->
ps
.
sps
->
pixel_shift
)
);
src2
+=
y_off
*
src2stride
+
(
x_off
*
(
1
<<
s
->
ps
.
sps
->
pixel_shift
)
);
if
(
x_off
<
EPEL_EXTRA_BEFORE
||
y_off
<
EPEL_EXTRA_AFTER
||
x_off
>=
pic_width
-
block_w
-
EPEL_EXTRA_AFTER
||
...
...
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