summaryrefslogtreecommitdiffstats
path: root/libhb/encx265.c
diff options
context:
space:
mode:
authorschrotthaufen <[email protected]>2015-11-13 17:11:28 +0100
committerschrotthaufen <[email protected]>2015-11-13 17:21:44 +0100
commit849a5283605cfdb6c5f9a1884ac0d86afc189788 (patch)
tree565bbdd392b2d67bf1ad96716131089e9c44c081 /libhb/encx265.c
parent476421bb2825cc1de6bb5407908406f69e745c52 (diff)
Added missing NULL pointer check in encx265Close
pv was never checked to be NULL, which would lead to a NULL pointer dereference in the pv->delayed_chapters != NULL check, when w->private_data is NULL.
Diffstat (limited to 'libhb/encx265.c')
-rw-r--r--libhb/encx265.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/encx265.c b/libhb/encx265.c
index 4ce890f99..a3af25c19 100644
--- a/libhb/encx265.c
+++ b/libhb/encx265.c
@@ -347,6 +347,7 @@ void encx265Close(hb_work_object_t *w)
{
hb_work_private_t *pv = w->private_data;
+ if (pv == NULL) return;
if (pv->delayed_chapters != NULL)
{
struct chapter_s *item;