Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Xuefeng Jiang
dav1d
Commits
222bf249
Verified
Commit
222bf249
authored
Feb 14, 2019
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obu: free Metadata buffers at the start of a new Sequence
They only apply to the old one.
parent
a12ba9c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/obu.c
src/obu.c
+4
-0
No files found.
src/obu.c
View file @
222bf249
...
@@ -1243,6 +1243,10 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in, int global) {
...
@@ -1243,6 +1243,10 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in, int global) {
c
->
frame_hdr
=
NULL
;
c
->
frame_hdr
=
NULL
;
else
if
(
memcmp
(
seq_hdr
,
c
->
seq_hdr
,
sizeof
(
*
seq_hdr
)))
{
else
if
(
memcmp
(
seq_hdr
,
c
->
seq_hdr
,
sizeof
(
*
seq_hdr
)))
{
c
->
frame_hdr
=
NULL
;
c
->
frame_hdr
=
NULL
;
c
->
mastering_display
=
NULL
;
c
->
content_light
=
NULL
;
dav1d_ref_dec
(
&
c
->
mastering_display_ref
);
dav1d_ref_dec
(
&
c
->
content_light_ref
);
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
if
(
c
->
refs
[
i
].
p
.
p
.
data
[
0
])
if
(
c
->
refs
[
i
].
p
.
p
.
data
[
0
])
dav1d_thread_picture_unref
(
&
c
->
refs
[
i
].
p
);
dav1d_thread_picture_unref
(
&
c
->
refs
[
i
].
p
);
...
...
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