mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 17:46:50 +08:00
[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:
@@ -181,7 +181,7 @@ size_t mpp_buffer_get_size(MppBuffer buffer)
|
|||||||
{
|
{
|
||||||
if (NULL == buffer) {
|
if (NULL == buffer) {
|
||||||
mpp_err_f("invalid NULL input\n");
|
mpp_err_f("invalid NULL input\n");
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
MppBufferImpl *p = (MppBufferImpl*)buffer;
|
MppBufferImpl *p = (MppBufferImpl*)buffer;
|
||||||
|
Reference in New Issue
Block a user