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
1545acea
Commit
1545acea
authored
Apr 30, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont missuse assert()
Originally committed as revision 3096 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
eea8c08f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
motion_est.c
libavcodec/motion_est.c
+8
-2
No files found.
libavcodec/motion_est.c
View file @
1545acea
...
...
@@ -1002,7 +1002,10 @@ static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int
c
->
stride
<<=
1
;
c
->
uvstride
<<=
1
;
assert
(
s
->
flags
&
CODEC_FLAG_INTERLACED_ME
);
if
(
!
(
s
->
flags
&
CODEC_FLAG_INTERLACED_ME
)){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Interlaced macroblock selected but interlaced motion estimation disabled
\n
"
);
return
-
1
;
}
if
(
USES_LIST
(
mb_type
,
0
)){
int
field_select0
=
p
->
ref_index
[
0
][
xy
];
...
...
@@ -1060,7 +1063,10 @@ static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int
c
->
stride
>>=
1
;
c
->
uvstride
>>=
1
;
}
else
if
(
IS_8X8
(
mb_type
)){
assert
(
s
->
flags
&
CODEC_FLAG_4MV
);
if
(
!
(
s
->
flags
&
CODEC_FLAG_4MV
)){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"4MV macroblock selected but 4MV encoding disabled
\n
"
);
return
-
1
;
}
cmpf
=
s
->
dsp
.
sse
[
1
];
chroma_cmpf
=
s
->
dsp
.
sse
[
1
];
init_mv4_ref
(
s
);
...
...
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