changeset 12573:a3a088a7262f Release_3.2

Fix encoder crash with zones and add test for zones
author Pooja Venkatesan <pooja@multicorewareinc.com>
date Mon, 14 Oct 2019 14:33:16 +0530
parents 0f89afaddc5c
children 7fa570ead8d3
files source/encoder/api.cpp source/test/regression-tests.txt
diffstat 2 files changed, 2 insertions(+-), 0 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/api.cpp	Fri Oct 11 12:45:52 2019 +0530
+++ b/source/encoder/api.cpp	Mon Oct 14 14:33:16 2019 +0530
@@ -108,6 +108,7 @@ x265_encoder *x265_encoder_open(x265_par
         int zoneCount = p->rc.zonefileCount ? p->rc.zonefileCount : p->rc.zoneCount;
         param->rc.zones = x265_zone_alloc(zoneCount, !!p->rc.zonefileCount);
         latestParam->rc.zones = x265_zone_alloc(zoneCount, !!p->rc.zonefileCount);
+        zoneParam->rc.zones = x265_zone_alloc(zoneCount, !!p->rc.zonefileCount);
     }
 
     x265_copy_params(param, p);
--- a/source/test/regression-tests.txt	Fri Oct 11 12:45:52 2019 +0530
+++ b/source/test/regression-tests.txt	Mon Oct 14 14:33:16 2019 +0530
@@ -156,6 +156,7 @@ big_buck_bunny_360p24.y4m, --bitrate 500
 720p50_parkrun_ter.y4m,--preset medium --bitrate 400 --hme
 ducks_take_off_420_720p50.y4m,--preset medium --aq-mode 4 --crf 22 --no-cutree
 ducks_take_off_420_1_720p50.y4m,--preset medium --selective-sao 4 --sao --crf 20
+Kimono1_1920x1080_24_400.yuv,--preset superfast --qp 28 --zones 0,139,q=32
 
 # Main12 intraCost overflow bug test
 720p50_parkrun_ter.y4m,--preset medium