[mpp_buffer]: add buffer check on buffer size

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@349 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-10-12 14:55:18 +00:00
parent 5449174411
commit d09f2d736e
3 changed files with 9 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ int main()
count = MPP_BUFFER_TEST_NORMAL_COUNT;
mpp_buffer_group_limit_config(group, size, count);
mpp_buffer_group_limit_config(group, 0, count);
for (i = 0; i < count; i++) {
ret = mpp_buffer_get(group, &normal_buffer[i], (i + 1) * SZ_1K);