From 860c331d58487bd016f432145afaf9ba2dca9dc8 Mon Sep 17 00:00:00 2001 From: Knniggett Date: Sun, 18 Aug 2013 15:01:46 -0500 Subject: [PATCH] Suppresses erroneous Corrupt Jpeg messages sent from the jpeg library --- src/zm_jpeg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zm_jpeg.cpp b/src/zm_jpeg.cpp index ed745f973..f9828c51c 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. */