mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-16 18:44:45 -04:00
Suppresses erroneous Corrupt Jpeg messages sent from the jpeg library
This commit is contained in:
@@ -59,7 +59,8 @@ void zm_jpeg_emit_message( j_common_ptr cinfo, int msg_level )
|
||||
*/
|
||||
if ( zmerr->pub.num_warnings == 0 || zmerr->pub.trace_level >= 3 )
|
||||
{
|
||||
(zmerr->pub.format_message)( cinfo, buffer );
|
||||
(zmerr->pub.format_message)( cinfo, buffer );
|
||||
if (!strstr(buffer, "Corrupt JPEG data:"))
|
||||
Warning( "%s", buffer );
|
||||
}
|
||||
/* Always count warnings in num_warnings. */
|
||||
|
||||
Reference in New Issue
Block a user