[x265] [PATCH] zone: Fix encoder crash in linux

Pradeep Ramachandran pradeep at multicorewareinc.com
Wed Feb 13 09:03:24 CET 2019


On Fri, Feb 8, 2019 at 4:04 PM <pooja at multicorewareinc.com> wrote:

> # 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()
>

Pushed to default. Thanks for the fix.


>
> 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;
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20190213/79debb2e/attachment.html>


More information about the x265-devel mailing list