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

OpenCV: array identifier cannot be NULL

parent 04509ed8
...@@ -283,14 +283,12 @@ static void ReleaseImages( filter_t* p_filter ) ...@@ -283,14 +283,12 @@ 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] != NULL)
{ {
if (p_sys->p_cv_image[i]) { 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;
......
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