projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3129396
)
x265enc: fix memory leak
author
Luis de Bethencourt
<luis@debethencourt.com>
Wed, 5 Aug 2015 10:11:11 +0000
(11:11 +0100)
committer
Luis de Bethencourt
<luis@debethencourt.com>
Wed, 5 Aug 2015 10:11:14 +0000
(11:11 +0100)
Free vps_nal before returning.
CID #1315257
ext/x265/gstx265enc.c
patch
|
blob
|
history
diff --git
a/ext/x265/gstx265enc.c
b/ext/x265/gstx265enc.c
index
47b95a6
..
18577d0
100644
(file)
--- a/
ext/x265/gstx265enc.c
+++ b/
ext/x265/gstx265enc.c
@@
-735,6
+735,7
@@
gst_x265_enc_set_level_tier_and_profile (GstX265Enc * encoder, GstCaps * caps)
x265_nal *nal, *vps_nal;
guint32 i_nal;
int header_return;
+ gboolean ret = TRUE;
GST_DEBUG_OBJECT (encoder, "set profile, level and tier");
@@
-756,12
+757,12
@@
gst_x265_enc_set_level_tier_and_profile (GstX265Enc * encoder, GstCaps * caps)
vps_nal->payload + 6, vps_nal->sizeBytes - 6)) {
GST_ELEMENT_ERROR (encoder, STREAM, ENCODE, ("Encode x265 failed."),
("Failed to find correct level, tier or profile in VPS"));
- ret
urn
FALSE;
+ ret
=
FALSE;
}
x265_nal_free (vps_nal);
- return
TRUE
;
+ return
ret
;
}
static GstBuffer *