Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
488dba70
Commit
488dba70
authored
15 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
Fix colocated map.
Originally committed as revision 21664 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d88ea354
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/h264_direct.c
+3
-3
3 additions, 3 deletions
libavcodec/h264_direct.c
with
3 additions
and
3 deletions
libavcodec/h264_direct.c
+
3
−
3
View file @
488dba70
...
@@ -71,7 +71,7 @@ static void fill_colmap(H264Context *h, int map[2][16+32], int list, int field,
...
@@ -71,7 +71,7 @@ static void fill_colmap(H264Context *h, int map[2][16+32], int list, int field,
Picture
*
const
ref1
=
&
h
->
ref_list
[
1
][
0
];
Picture
*
const
ref1
=
&
h
->
ref_list
[
1
][
0
];
int
j
,
old_ref
,
rfield
;
int
j
,
old_ref
,
rfield
;
int
start
=
mbafi
?
16
:
0
;
int
start
=
mbafi
?
16
:
0
;
int
end
=
mbafi
?
16
+
2
*
h
->
ref_count
[
list
]
:
h
->
ref_count
[
list
];
int
end
=
mbafi
?
16
+
2
*
h
->
ref_count
[
0
]
:
h
->
ref_count
[
0
];
int
interl
=
mbafi
||
s
->
picture_structure
!=
PICT_FRAME
;
int
interl
=
mbafi
||
s
->
picture_structure
!=
PICT_FRAME
;
/* bogus; fills in for missing frames */
/* bogus; fills in for missing frames */
...
@@ -87,10 +87,10 @@ static void fill_colmap(H264Context *h, int map[2][16+32], int list, int field,
...
@@ -87,10 +87,10 @@ static void fill_colmap(H264Context *h, int map[2][16+32], int list, int field,
poc
=
(
poc
&~
3
)
+
rfield
+
1
;
poc
=
(
poc
&~
3
)
+
rfield
+
1
;
for
(
j
=
start
;
j
<
end
;
j
++
){
for
(
j
=
start
;
j
<
end
;
j
++
){
if
(
4
*
h
->
ref_list
[
list
][
j
].
frame_num
+
(
h
->
ref_list
[
list
][
j
].
reference
&
3
)
==
poc
){
if
(
4
*
h
->
ref_list
[
0
][
j
].
frame_num
+
(
h
->
ref_list
[
0
][
j
].
reference
&
3
)
==
poc
){
int
cur_ref
=
mbafi
?
(
j
-
16
)
^
field
:
j
;
int
cur_ref
=
mbafi
?
(
j
-
16
)
^
field
:
j
;
map
[
list
][
2
*
old_ref
+
(
rfield
^
field
)
+
16
]
=
cur_ref
;
map
[
list
][
2
*
old_ref
+
(
rfield
^
field
)
+
16
]
=
cur_ref
;
if
(
rfield
==
field
)
if
(
rfield
==
field
||
!
interl
)
map
[
list
][
old_ref
]
=
cur_ref
;
map
[
list
][
old_ref
]
=
cur_ref
;
break
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment