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
471341a7
Commit
471341a7
authored
Sep 21, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
Originally committed as revision 15379 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
53c193a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
h264.c
libavcodec/h264.c
+5
-5
No files found.
libavcodec/h264.c
View file @
471341a7
...
@@ -988,11 +988,11 @@ static inline void pred_direct_motion(H264Context * const h, int *mb_type){
...
@@ -988,11 +988,11 @@ static inline void pred_direct_motion(H264Context * const h, int *mb_type){
if
(
IS_INTERLACED
(
h
->
ref_list
[
1
][
0
].
mb_type
[
mb_xy
])){
// AFL/AFR/FR/FL -> AFL/FL
if
(
IS_INTERLACED
(
h
->
ref_list
[
1
][
0
].
mb_type
[
mb_xy
])){
// AFL/AFR/FR/FL -> AFL/FL
if
(
!
IS_INTERLACED
(
*
mb_type
)){
// AFR/FR -> AFL/FL
if
(
!
IS_INTERLACED
(
*
mb_type
)){
// AFR/FR -> AFL/FL
int
cur_poc
=
s
->
current_picture_ptr
->
poc
;
int
cur_poc
=
s
->
current_picture_ptr
->
poc
;
int
*
col_poc
=
h
->
ref_list
[
1
]
->
field_poc
;
int
*
col_poc
=
h
->
ref_list
[
1
]
->
field_poc
;
int
col_parity
=
FFABS
(
col_poc
[
0
]
-
cur_poc
)
>=
FFABS
(
col_poc
[
1
]
-
cur_poc
);
int
col_parity
=
FFABS
(
col_poc
[
0
]
-
cur_poc
)
>=
FFABS
(
col_poc
[
1
]
-
cur_poc
);
mb_xy
=
s
->
mb_x
+
((
s
->
mb_y
&~
1
)
+
col_parity
)
*
s
->
mb_stride
;
mb_xy
=
s
->
mb_x
+
((
s
->
mb_y
&~
1
)
+
col_parity
)
*
s
->
mb_stride
;
b8_stride
=
0
;
b8_stride
=
0
;
}
else
if
(
!
(
s
->
picture_structure
&
h
->
ref_list
[
1
][
0
].
reference
)){
// FL -> FL & differ parity
}
else
if
(
!
(
s
->
picture_structure
&
h
->
ref_list
[
1
][
0
].
reference
)){
// FL -> FL & differ parity
int
fieldoff
=
2
*
(
h
->
ref_list
[
1
][
0
].
reference
)
-
3
;
int
fieldoff
=
2
*
(
h
->
ref_list
[
1
][
0
].
reference
)
-
3
;
mb_xy
+=
s
->
mb_stride
*
fieldoff
;
mb_xy
+=
s
->
mb_stride
*
fieldoff
;
...
...
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