Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
52b16768
Commit
52b16768
authored
Feb 18, 2016
by
Philippe Normand
Committed by
Sebastian Dröge
Feb 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qtdemux: plug leaks in cenc aux info parsing
parent
8e2c1d1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
gst/isomp4/qtdemux.c
gst/isomp4/qtdemux.c
+2
-0
No files found.
gst/isomp4/qtdemux.c
View file @
52b16768
...
...
@@ -3279,6 +3279,7 @@ qtdemux_parse_cenc_aux_info (GstQTDemux * qtdemux, QtDemuxStream * stream,
}
buf
=
gst_buffer_new_wrapped
(
data
,
iv_size
);
gst_structure_set
(
properties
,
"iv"
,
GST_TYPE_BUFFER
,
buf
,
NULL
);
gst_buffer_unref
(
buf
);
size
=
info_sizes
[
i
];
if
(
size
>
iv_size
)
{
if
(
!
gst_byte_reader_get_uint16_be
(
br
,
&
n_subsamples
)
...
...
@@ -3303,6 +3304,7 @@ qtdemux_parse_cenc_aux_info (GstQTDemux * qtdemux, QtDemuxStream * stream,
gst_structure_set
(
properties
,
"subsample_count"
,
G_TYPE_UINT
,
n_subsamples
,
"subsamples"
,
GST_TYPE_BUFFER
,
buf
,
NULL
);
gst_buffer_unref
(
buf
);
}
else
{
gst_structure_set
(
properties
,
"subsample_count"
,
G_TYPE_UINT
,
0
,
NULL
);
}
...
...
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