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
8652e44a
Commit
8652e44a
authored
Jan 27, 2010
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify left_xy init
Originally committed as revision 21470 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
599fe45b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
h264.h
libavcodec/h264.h
+2
-4
No files found.
libavcodec/h264.h
View file @
8652e44a
...
...
@@ -1144,16 +1144,14 @@ static int fill_filter_caches(H264Context *h, int mb_type){
const
int
curr_mb_field_flag
=
IS_INTERLACED
(
mb_type
);
if
(
s
->
mb_y
&
1
){
if
(
left_mb_field_flag
!=
curr_mb_field_flag
)
{
left_xy
[
0
]
=
mb_xy
-
s
->
mb_stride
-
1
;
left_xy
[
1
]
=
mb_xy
-
1
;
left_xy
[
0
]
-=
s
->
mb_stride
;
}
}
else
{
if
(
curr_mb_field_flag
){
top_xy
+=
s
->
mb_stride
&
(((
s
->
current_picture
.
mb_type
[
top_xy
]
>>
7
)
&
1
)
-
1
);
}
if
(
left_mb_field_flag
!=
curr_mb_field_flag
)
{
left_xy
[
0
]
=
mb_xy
-
1
;
left_xy
[
1
]
=
mb_xy
+
s
->
mb_stride
-
1
;
left_xy
[
1
]
+=
s
->
mb_stride
;
}
}
}
...
...
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