/* Reset error state variables at start of a new image. This is called during compression startup to reset trace/error processing to default state, without losing any application-specific method pointers. An application might possibly want to override this method if it has additional error processing state.  */
reset_error_mgr(j_common_ptr cinfo)
/* Reset error state variables at start of a new image. This is called during compression startup to reset trace/error processing to default state, without losing any application-specific method pointers. An application might possibly want to override this method if it has additional error processing state.  */
reset_error_mgr(j_common_ptr cinfo)
{
    cinfo->err->num_warnings = 0;
    cinfo->err->msg_code = 0;
}