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
35782bfb
Commit
35782bfb
authored
Oct 15, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: Change asserts to av_asserts in ff_h264_fill_default_ref_list()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
151469db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
h264_refs.c
libavcodec/h264_refs.c
+3
-3
No files found.
libavcodec/h264_refs.c
View file @
35782bfb
...
@@ -123,10 +123,10 @@ int ff_h264_fill_default_ref_list(H264Context *h){
...
@@ -123,10 +123,10 @@ int ff_h264_fill_default_ref_list(H264Context *h){
for
(
list
=
0
;
list
<
2
;
list
++
){
for
(
list
=
0
;
list
<
2
;
list
++
){
len
=
add_sorted
(
sorted
,
h
->
short_ref
,
h
->
short_ref_count
,
cur_poc
,
1
^
list
);
len
=
add_sorted
(
sorted
,
h
->
short_ref
,
h
->
short_ref_count
,
cur_poc
,
1
^
list
);
len
+=
add_sorted
(
sorted
+
len
,
h
->
short_ref
,
h
->
short_ref_count
,
cur_poc
,
0
^
list
);
len
+=
add_sorted
(
sorted
+
len
,
h
->
short_ref
,
h
->
short_ref_count
,
cur_poc
,
0
^
list
);
a
ssert
(
len
<=
32
);
a
v_assert0
(
len
<=
32
);
len
=
build_def_list
(
h
->
default_ref_list
[
list
]
,
sorted
,
len
,
0
,
s
->
picture_structure
);
len
=
build_def_list
(
h
->
default_ref_list
[
list
]
,
sorted
,
len
,
0
,
s
->
picture_structure
);
len
+=
build_def_list
(
h
->
default_ref_list
[
list
]
+
len
,
h
->
long_ref
,
16
,
1
,
s
->
picture_structure
);
len
+=
build_def_list
(
h
->
default_ref_list
[
list
]
+
len
,
h
->
long_ref
,
16
,
1
,
s
->
picture_structure
);
a
ssert
(
len
<=
32
);
a
v_assert0
(
len
<=
32
);
if
(
len
<
h
->
ref_count
[
list
])
if
(
len
<
h
->
ref_count
[
list
])
memset
(
&
h
->
default_ref_list
[
list
][
len
],
0
,
sizeof
(
Picture
)
*
(
h
->
ref_count
[
list
]
-
len
));
memset
(
&
h
->
default_ref_list
[
list
][
len
],
0
,
sizeof
(
Picture
)
*
(
h
->
ref_count
[
list
]
-
len
));
...
@@ -141,7 +141,7 @@ int ff_h264_fill_default_ref_list(H264Context *h){
...
@@ -141,7 +141,7 @@ int ff_h264_fill_default_ref_list(H264Context *h){
}
else
{
}
else
{
len
=
build_def_list
(
h
->
default_ref_list
[
0
]
,
h
->
short_ref
,
h
->
short_ref_count
,
0
,
s
->
picture_structure
);
len
=
build_def_list
(
h
->
default_ref_list
[
0
]
,
h
->
short_ref
,
h
->
short_ref_count
,
0
,
s
->
picture_structure
);
len
+=
build_def_list
(
h
->
default_ref_list
[
0
]
+
len
,
h
->
long_ref
,
16
,
1
,
s
->
picture_structure
);
len
+=
build_def_list
(
h
->
default_ref_list
[
0
]
+
len
,
h
->
long_ref
,
16
,
1
,
s
->
picture_structure
);
a
ssert
(
len
<=
32
);
a
v_assert0
(
len
<=
32
);
if
(
len
<
h
->
ref_count
[
0
])
if
(
len
<
h
->
ref_count
[
0
])
memset
(
&
h
->
default_ref_list
[
0
][
len
],
0
,
sizeof
(
Picture
)
*
(
h
->
ref_count
[
0
]
-
len
));
memset
(
&
h
->
default_ref_list
[
0
][
len
],
0
,
sizeof
(
Picture
)
*
(
h
->
ref_count
[
0
]
-
len
));
}
}
...
...
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