OSDN Git Service

i965_decoder_utils: replace alloca(3) with malloc(3) and free(3)
authorLeonardo Taccari <iamleot@gmail.com>
Mon, 6 Mar 2017 21:40:25 +0000 (22:40 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 9 Mar 2017 15:02:39 +0000 (23:02 +0800)
commitef83d404e54cd797a9485ce0c4359ec0e6a8b759
tree629e3cd56b15675319e9772792e4f11f37dfca5d
parentcf5f91c541e8945983bd136f15ca5d75f74449fb
i965_decoder_utils: replace alloca(3) with malloc(3) and free(3)

alloca(3) usage is less portable than malloc(3)/free(3) (this fixes
issue #76 pointed out by building intel-vaapi-driver on NetBSD).

Suggested and thanks to @xhaihao and @yakuizhao via pull request #77.

Signed-off-by: Leonardo Taccari <iamleot@gmail.com>
src/i965_decoder_utils.c