diff options
Diffstat (limited to 'gstcs/mm_util_gstcs.c')
-rwxr-xr-x | gstcs/mm_util_gstcs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c index b0b9c9a..215e4c2 100755 --- a/gstcs/mm_util_gstcs.c +++ b/gstcs/mm_util_gstcs.c @@ -404,6 +404,7 @@ static int _mm_push_buffer_into_pipeline_new(unsigned char *src, gstreamer_s * p gstcs_fenter(); gstcs_retvm_if(pGstreamer_s->pipeline == NULL, GSTCS_ERROR_INVALID_PARAMETER, "Invalid pipeline"); + gstcs_retvm_if((width == 0 || height == 0), GSTCS_ERROR_INVALID_PARAMETER, "Invalid width(%u) and height(%u)", width, height); src_size = _mm_setup_image_size(color_format, stride, elevation); |