OSDN Git Service

gen9_avc_encoder: brc_curbe_size is not static anymore
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 1 Jun 2017 10:09:49 +0000 (12:09 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 1 Jun 2017 15:21:05 +0000 (23:21 +0800)
commit533193a2e187601ad976060d11b7fda679058295
tree3e11ba09630c1e8bbb1e7dfb92993926a136a8c2
parentf896ca2aac7780f145d06ef34457f9bc28bdd29d
gen9_avc_encoder: brc_curbe_size is not static anymore

Static memory allocation in general is the allocation of memory at compile
time before the associated program is executed.

And this is the case when compiling with clang: it tries to optimize the
allocation of static memory in compilation time, thus commit f896ca2a breaks
the compilation, since the structure can only be defined at execution time.

Fix #184

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
src/gen9_avc_encoder.c