[x265] [PATCH] common: validate maximum ctusize

sumalatha at multicorewareinc.com sumalatha at multicorewareinc.com
Fri Feb 21 08:26:20 CET 2014


# HG changeset patch
# User Sumalatha Polureddy
# Date 1392967571 -19800
# Node ID eaefbce58786b45aa72e2dcc6d26b2543d55973a
# Parent  00faf694d2feefbe49a8d91ac4afaada93cab53c
common: validate maximum ctusize

diff -r 00faf694d2fe -r eaefbce58786 source/common/common.cpp
--- a/source/common/common.cpp	Fri Feb 21 12:30:00 2014 +0530
+++ b/source/common/common.cpp	Fri Feb 21 12:56:11 2014 +0530
@@ -554,6 +554,8 @@
             CHECK(i != 1, "Max CU size should be 2^n");
     }
 
+    CHECK(param->maxCUSize > 64,
+          "max ctu size should be less than 64");
     CHECK(param->bEnableWavefront < 0, "WaveFrontSynchro cannot be negative");
     CHECK((param->aspectRatioIdc < 0
           || param->aspectRatioIdc > 16)


More information about the x265-devel mailing list