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
01a0283c
Commit
01a0283c
authored
Mar 12, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: disallow single unpaired fields as references of frames
Fixes deadlock
parent
c69acbf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
h264_refs.c
libavcodec/h264_refs.c
+4
-2
No files found.
libavcodec/h264_refs.c
View file @
01a0283c
...
...
@@ -293,12 +293,14 @@ int ff_h264_decode_ref_pic_list_reordering(H264Context *h){
}
for
(
list
=
0
;
list
<
h
->
list_count
;
list
++
){
for
(
index
=
0
;
index
<
h
->
ref_count
[
list
];
index
++
){
if
(
!
h
->
ref_list
[
list
][
index
].
f
.
data
[
0
])
{
if
(
!
h
->
ref_list
[
list
][
index
].
f
.
data
[
0
]
||
(
!
FIELD_PICTURE
&&
(
h
->
ref_list
[
list
][
index
].
reference
&
3
)
!=
3
))
{
int
i
;
av_log
(
h
->
avctx
,
AV_LOG_ERROR
,
"Missing reference picture, default is %d
\n
"
,
h
->
default_ref_list
[
list
][
0
].
poc
);
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
h
->
last_pocs
);
i
++
)
h
->
last_pocs
[
i
]
=
INT_MIN
;
if
(
h
->
default_ref_list
[
list
][
0
].
f
.
data
[
0
])
if
(
h
->
default_ref_list
[
list
][
0
].
f
.
data
[
0
]
&&
!
(
!
FIELD_PICTURE
&&
(
h
->
default_ref_list
[
list
][
index
].
reference
&
3
)
!=
3
))
COPY_PICTURE
(
&
h
->
ref_list
[
list
][
index
],
&
h
->
default_ref_list
[
list
][
0
]);
else
return
-
1
;
...
...
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