Suppresses erroneous Corrupt Jpeg messages sent from the jpeg library

This commit is contained in:
Knniggett 2013-08-18 15:01:46 -05:00
parent 4d508d8be2
commit 860c331d58
1 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ 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 );
if (!strstr(buffer, "Corrupt JPEG data:"))
Warning( "%s", buffer );
}
/* Always count warnings in num_warnings. */