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
4a711c33
Commit
4a711c33
authored
Jan 06, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b frame segfault fix
Originally committed as revision 1400 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b17d099d
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 @
4a711c33
...
...
@@ -1309,15 +1309,15 @@ static inline int direct_search(MpegEncContext * s,
min
=
FFMIN
(
s
->
me
.
direct_basis_mv
[
i
][
0
],
s
->
me
.
direct_basis_mv
[
i
][
0
]
-
s
->
me
.
co_located_mv
[
i
][
0
])
>>
shift
;
max
+=
(
2
*
mb_x
+
(
i
&
1
))
*
8
-
1
;
// +-1 is for the simpler rounding
min
+=
(
2
*
mb_x
+
(
i
&
1
))
*
8
+
1
;
if
(
max
>=
s
->
width
)
xmax
=
s
->
width
-
max
-
1
;
if
(
min
<
-
16
)
xmin
=
-
32
-
min
;
xmax
=
FFMIN
(
xmax
,
s
->
width
-
max
)
;
xmin
=
FFMAX
(
xmin
,
-
16
-
min
)
;
max
=
FFMAX
(
s
->
me
.
direct_basis_mv
[
i
][
1
],
s
->
me
.
direct_basis_mv
[
i
][
1
]
-
s
->
me
.
co_located_mv
[
i
][
1
])
>>
shift
;
min
=
FFMIN
(
s
->
me
.
direct_basis_mv
[
i
][
1
],
s
->
me
.
direct_basis_mv
[
i
][
1
]
-
s
->
me
.
co_located_mv
[
i
][
1
])
>>
shift
;
max
+=
(
2
*
mb_y
+
(
i
>>
1
))
*
8
-
1
;
// +-1 is for the simpler rounding
min
+=
(
2
*
mb_y
+
(
i
>>
1
))
*
8
+
1
;
if
(
max
>=
s
->
height
)
ymax
=
s
->
height
-
max
-
1
;
if
(
min
<
-
16
)
ymin
=
-
32
-
min
;
ymax
=
FFMIN
(
ymax
,
s
->
height
-
max
)
;
ymin
=
FFMAX
(
ymin
,
-
16
-
min
)
;
if
(
s
->
mv_type
==
MV_TYPE_16X16
)
break
;
}
...
...
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