Merge pull request #21963 from hellodoge:imwrite_fix

pull/21975/head
OpenCV Pushbot 3 years ago committed by GitHub
commit 9712cc479b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/imgcodecs/src/grfmt_jpeg.cpp

@ -602,9 +602,9 @@ bool JpegEncoder::write( const Mat& img, const std::vector<int>& params )
JpegErrorMgr jerr;
JpegDestination dest;
jpeg_create_compress(&cinfo);
cinfo.err = jpeg_std_error(&jerr.pub);
jerr.pub.error_exit = error_exit;
jpeg_create_compress(&cinfo);
if( !m_buf )
{

Loading…
Cancel
Save