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
b6a83962
Commit
b6a83962
authored
Apr 18, 2017
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/motion_est: Fix undefined negative left shifts.
parent
87071478
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
motion_est.c
libavcodec/motion_est.c
+4
-4
No files found.
libavcodec/motion_est.c
View file @
b6a83962
...
...
@@ -956,10 +956,10 @@ void ff_estimate_p_frame_motion(MpegEncContext * s,
P_TOPRIGHT
[
1
]
=
s
->
current_picture
.
motion_val
[
0
][
mot_xy
-
mot_stride
+
2
][
1
];
if
(
P_TOP
[
1
]
>
(
c
->
ymax
<<
shift
))
P_TOP
[
1
]
=
c
->
ymax
<<
shift
;
if
(
P_TOPRIGHT
[
0
]
<
(
c
->
xmin
<<
shift
))
P_TOPRIGHT
[
0
]
=
c
->
xmin
<<
shift
;
if
(
P_TOPRIGHT
[
1
]
>
(
c
->
ymax
<<
shift
))
P_TOPRIGHT
[
1
]
=
c
->
ymax
<<
shift
;
if
(
P_TOPRIGHT
[
0
]
<
(
c
->
xmin
*
(
1
<<
shift
)
))
P_TOPRIGHT
[
0
]
=
c
->
xmin
*
(
1
<<
shift
)
;
if
(
P_TOPRIGHT
[
1
]
>
(
c
->
ymax
*
(
1
<<
shift
)
))
P_TOPRIGHT
[
1
]
=
c
->
ymax
*
(
1
<<
shift
)
;
P_MEDIAN
[
0
]
=
mid_pred
(
P_LEFT
[
0
],
P_TOP
[
0
],
P_TOPRIGHT
[
0
]);
P_MEDIAN
[
1
]
=
mid_pred
(
P_LEFT
[
1
],
P_TOP
[
1
],
P_TOPRIGHT
[
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