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
096c3b7e
Commit
096c3b7e
authored
Nov 16, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
overflow fix
Originally committed as revision 3685 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
dffcdbb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
motion_est.c
libavcodec/motion_est.c
+3
-3
No files found.
libavcodec/motion_est.c
View file @
096c3b7e
...
...
@@ -1017,7 +1017,7 @@ static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int
if
(
p_type
&&
USES_LIST
(
mb_type
,
1
)){
av_log
(
c
->
avctx
,
AV_LOG_ERROR
,
"backward motion vector in P frame
\n
"
);
return
INT_MAX
;
return
INT_MAX
/
4
;
}
assert
(
IS_INTRA
(
mb_type
)
||
USES_LIST
(
mb_type
,
0
)
||
USES_LIST
(
mb_type
,
1
));
...
...
@@ -1035,7 +1035,7 @@ static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int
if
(
!
(
s
->
flags
&
CODEC_FLAG_INTERLACED_ME
)){
av_log
(
c
->
avctx
,
AV_LOG_ERROR
,
"Interlaced macroblock selected but interlaced motion estimation disabled
\n
"
);
return
INT_MAX
;
return
INT_MAX
/
4
;
}
if
(
USES_LIST
(
mb_type
,
0
)){
...
...
@@ -1096,7 +1096,7 @@ static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int
}
else
if
(
IS_8X8
(
mb_type
)){
if
(
!
(
s
->
flags
&
CODEC_FLAG_4MV
)){
av_log
(
c
->
avctx
,
AV_LOG_ERROR
,
"4MV macroblock selected but 4MV encoding disabled
\n
"
);
return
INT_MAX
;
return
INT_MAX
/
4
;
}
cmpf
=
s
->
dsp
.
sse
[
1
];
chroma_cmpf
=
s
->
dsp
.
sse
[
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