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
0fc01ae3
Commit
0fc01ae3
authored
Mar 11, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: fix null pointer dereference and assertion failure
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ee3c3dd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
h264.c
libavcodec/h264.c
+2
-2
No files found.
libavcodec/h264.c
View file @
0fc01ae3
...
...
@@ -1727,7 +1727,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
h
->
data_partitioning
=
h1
->
data_partitioning
;
h
->
low_delay
=
h1
->
low_delay
;
for
(
i
=
0
;
i
<
MAX_PICTURE_COUNT
;
i
++
)
{
for
(
i
=
0
;
h
->
DPB
&&
i
<
MAX_PICTURE_COUNT
;
i
++
)
{
h
->
DPB
[
i
].
period_since_free
++
;
unref_picture
(
h
,
&
h
->
DPB
[
i
]);
if
(
h1
->
DPB
[
i
].
f
.
data
[
0
]
&&
...
...
@@ -1737,7 +1737,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
h
->
cur_pic_ptr
=
REBASE_PICTURE
(
h1
->
cur_pic_ptr
,
h
,
h1
);
unref_picture
(
h
,
&
h
->
cur_pic
);
if
((
ret
=
ref_picture
(
h
,
&
h
->
cur_pic
,
&
h1
->
cur_pic
))
<
0
)
if
(
h1
->
cur_pic
.
f
.
buf
[
0
]
&&
(
ret
=
ref_picture
(
h
,
&
h
->
cur_pic
,
&
h1
->
cur_pic
))
<
0
)
return
ret
;
h
->
workaround_bugs
=
h1
->
workaround_bugs
;
...
...
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