Commit 408ef5c6 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #8288 from Jejos:bugfix_medianBlur_accessviolation

parents 38abc61d 5169c799
......@@ -3494,7 +3494,7 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize )
CV_Assert( (ksize % 2 == 1) && (_src0.dims() <= 2 ));
if( ksize <= 1 )
if( ksize <= 1 || _src0.empty() )
{
_src0.copyTo(_dst);
return;
......
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