mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
Merge pull request #21963 from hellodoge:imwrite_fix
This commit is contained in:
commit
9712cc479b
@ -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…
Reference in New Issue
Block a user