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
9434ec5f
Commit
9434ec5f
authored
Jan 04, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h264_refs: Fix and add back trace code removed in
e1c5170c
parent
e4e9b945
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
h264_refs.c
libavcodec/h264_refs.c
+16
-0
No files found.
libavcodec/h264_refs.c
View file @
9434ec5f
...
@@ -181,6 +181,22 @@ static void h264_initialise_ref_list(H264Context *h, H264SliceContext *sl)
...
@@ -181,6 +181,22 @@ static void h264_initialise_ref_list(H264Context *h, H264SliceContext *sl)
if
(
len
<
sl
->
ref_count
[
0
])
if
(
len
<
sl
->
ref_count
[
0
])
memset
(
&
sl
->
ref_list
[
0
][
len
],
0
,
sizeof
(
H264Ref
)
*
(
sl
->
ref_count
[
0
]
-
len
));
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
(
j
=
0
;
j
<
1
+
(
sl
->
slice_type_nos
==
AV_PICTURE_TYPE_B
);
j
++
)
{
for
(
i
=
0
;
i
<
sl
->
ref_count
[
j
];
i
++
)
{
for
(
i
=
0
;
i
<
sl
->
ref_count
[
j
];
i
++
)
{
...
...
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