[x265] [PATCH] zone: Fix encoder crash in linux
pooja at multicorewareinc.com
pooja at multicorewareinc.com
Fri Feb 8 11:33:41 CET 2019
# HG changeset patch
# User Pooja Venkatesan <pooja at multicorewareinc.com>
# Date 1549621973 -19800
# Fri Feb 08 16:02:53 2019 +0530
# Node ID dcbec33bfb0f1cabdb1ff9eaadba5305ba23e6fa
# Parent 5b90dc59b57a8ea8f4fb269400c2335be3bb73c1
zone: Fix encoder crash in linux
Handle passing NULL to strdup()
diff -r 5b90dc59b57a -r dcbec33bfb0f source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp Thu Feb 07 16:29:36 2019 +0530
+++ b/source/encoder/encoder.cpp Fri Feb 08 16:02:53 2019 +0530
@@ -2651,7 +2651,8 @@
p->bEnableRectInter = zone->bEnableRectInter;
p->maxNumMergeCand = zone->maxNumMergeCand;
p->bIntraInBFrames = zone->bIntraInBFrames;
- p->scalingLists = strdup(zone->scalingLists);
+ if(zone->scalingLists)
+ p->scalingLists = strdup(zone->scalingLists);
p->rc.aqMode = zone->rc.aqMode;
p->rc.aqStrength = zone->rc.aqStrength;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 887 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20190208/facc91da/attachment.bin>
More information about the x265-devel
mailing list