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
1db641cb
Commit
1db641cb
authored
Jul 12, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/hevc: more clearing to avoid stale pointers
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ccd6911c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
hevc.c
libavcodec/hevc.c
+5
-0
No files found.
libavcodec/hevc.c
View file @
1db641cb
...
@@ -2965,6 +2965,9 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx)
...
@@ -2965,6 +2965,9 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx)
av_buffer_unref
(
&
s
->
sps_list
[
i
]);
av_buffer_unref
(
&
s
->
sps_list
[
i
]);
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
s
->
pps_list
);
i
++
)
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
s
->
pps_list
);
i
++
)
av_buffer_unref
(
&
s
->
pps_list
[
i
]);
av_buffer_unref
(
&
s
->
pps_list
[
i
]);
s
->
sps
=
NULL
;
s
->
pps
=
NULL
;
s
->
vps
=
NULL
;
av_buffer_unref
(
&
s
->
current_sps
);
av_buffer_unref
(
&
s
->
current_sps
);
...
@@ -3063,6 +3066,8 @@ static int hevc_update_thread_context(AVCodecContext *dst,
...
@@ -3063,6 +3066,8 @@ static int hevc_update_thread_context(AVCodecContext *dst,
}
}
}
}
if
(
s
->
sps
!=
s0
->
sps
)
s
->
sps
=
NULL
;
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
s
->
vps_list
);
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
s
->
vps_list
);
i
++
)
{
av_buffer_unref
(
&
s
->
vps_list
[
i
]);
av_buffer_unref
(
&
s
->
vps_list
[
i
]);
if
(
s0
->
vps_list
[
i
])
{
if
(
s0
->
vps_list
[
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