[mpp_buffer]: return 0 size when input MppBuffer is NULL

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1063 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-07-21 10:38:21 +00:00
parent c102900a6b
commit 6eeec0b515

View File

@@ -181,7 +181,7 @@ size_t mpp_buffer_get_size(MppBuffer buffer)
{
if (NULL == buffer) {
mpp_err_f("invalid NULL input\n");
return -1;
return 0;
}
MppBufferImpl *p = (MppBufferImpl*)buffer;