Commit 3fa1290c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

OpenCV: array identifier cannot be NULL

parent 04509ed8
...@@ -283,16 +283,14 @@ static void ReleaseImages( filter_t* p_filter ) ...@@ -283,16 +283,14 @@ static void ReleaseImages( filter_t* p_filter )
{ {
filter_sys_t* p_sys = p_filter->p_sys; filter_sys_t* p_sys = p_filter->p_sys;
if (p_sys->p_cv_image)
{
for( int i = 0; i < VOUT_MAX_PLANES; i++ ) for( int i = 0; i < VOUT_MAX_PLANES; i++ )
{ {
if (p_sys->p_cv_image[i]) { if (p_sys->p_cv_image[i] != NULL)
{
cvReleaseImageHeader(&(p_sys->p_cv_image[i])); cvReleaseImageHeader(&(p_sys->p_cv_image[i]));
p_sys->p_cv_image[i] = NULL; p_sys->p_cv_image[i] = NULL;
} }
} }
}
p_sys->i_cv_image_size = 0; p_sys->i_cv_image_size = 0;
/* Release temp picture_t if it exists */ /* Release temp picture_t if it exists */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment