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
9434ec5f
Commit
9434ec5f
authored
9 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
avcodec/h264_refs: Fix and add back trace code removed in
e1c5170c
parent
e4e9b945
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/h264_refs.c
+16
-0
16 additions, 0 deletions
libavcodec/h264_refs.c
with
16 additions
and
0 deletions
libavcodec/h264_refs.c
+
16
−
0
View file @
9434ec5f
...
...
@@ -181,6 +181,22 @@ static void h264_initialise_ref_list(H264Context *h, H264SliceContext *sl)
if
(
len
<
sl
->
ref_count
[
0
])
memset
(
&
sl
->
ref_list
[
0
][
len
],
0
,
sizeof
(
H264Ref
)
*
(
sl
->
ref_count
[
0
]
-
len
));
}
#ifdef TRACE
for
(
i
=
0
;
i
<
sl
->
ref_count
[
0
];
i
++
)
{
ff_tlog
(
h
->
avctx
,
"List0: %s fn:%d 0x%p
\n
"
,
(
sl
->
ref_list
[
0
][
i
].
parent
?
(
sl
->
ref_list
[
0
][
i
].
parent
->
long_ref
?
"LT"
:
"ST"
)
:
"??"
),
sl
->
ref_list
[
0
][
i
].
pic_id
,
sl
->
ref_list
[
0
][
i
].
data
[
0
]);
}
if
(
sl
->
slice_type_nos
==
AV_PICTURE_TYPE_B
)
{
for
(
i
=
0
;
i
<
sl
->
ref_count
[
1
];
i
++
)
{
ff_tlog
(
h
->
avctx
,
"List1: %s fn:%d 0x%p
\n
"
,
(
sl
->
ref_list
[
1
][
i
].
parent
?
(
sl
->
ref_list
[
1
][
i
].
parent
->
long_ref
?
"LT"
:
"ST"
)
:
"??"
),
sl
->
ref_list
[
1
][
i
].
pic_id
,
sl
->
ref_list
[
1
][
i
].
data
[
0
]);
}
}
#endif
for
(
j
=
0
;
j
<
1
+
(
sl
->
slice_type_nos
==
AV_PICTURE_TYPE_B
);
j
++
)
{
for
(
i
=
0
;
i
<
sl
->
ref_count
[
j
];
i
++
)
{
...
...
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