diff --git a/src/zm_jpeg.cpp b/src/zm_jpeg.cpp index 58c3ca5be..97ea47b32 100644 --- a/src/zm_jpeg.cpp +++ b/src/zm_jpeg.cpp @@ -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. */